/* ========================================
   ارغوان رایانه قزوین - استایل‌های سفارشی
   Argavan Rayaneh Qazvin - Custom Styles
   ======================================== */

/* ---------- فونت‌های محلی ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}

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

/* ---------- فونت جهانی ---------- */
*,
*::before,
*::after {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* ---------- متغیرهای رنگی ---------- */
:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --purple-950: #3b0764;
  --neon-purple: #bf5af2;
  --neon-purple-glow: rgba(191, 90, 242, 0.5);
  --dark-bg: #0f0a1a;
  --dark-surface: #1a1128;
  --dark-card: #1e1530;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ---------- اسکرول‌بار سفارشی ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-600);
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(191, 90, 242, 0.15);
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--neon-purple); }
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(10px, -20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translate(-5px, -40px) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translate(-15px, -20px) rotate(270deg);
    opacity: 1;
  }
}

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

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* ---------- هیرو ---------- */
.hero-bg {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0533 25%, #2d0a4e 50%, #1a0533 75%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(191, 90, 242, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* المان‌های انتزاعی کامپیوتری */
.circuit-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  height: 1px;
  animation: particle-float 8s ease-in-out infinite;
}

.circuit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-purple);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ---------- کارت‌ها ---------- */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(168, 85, 247, 0.15),
    0 0 0 1px rgba(168, 85, 247, 0.2);
}

.card-hover-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 20px 40px rgba(168, 85, 247, 0.2),
    0 0 30px rgba(168, 85, 247, 0.1);
}

/* ---------- دکمه‌ها ---------- */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--purple-500), var(--neon-purple), var(--purple-700), var(--purple-500));
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  box-shadow: 0 0 30px var(--neon-purple-glow);
  transform: translateY(-2px);
}

/* ---------- لوگوی مشتریان ---------- */
.client-logo {
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(0.6);
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* ---------- نوار ناوبری ---------- */
.nav-scrolled {
  background: rgba(15, 10, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- آمار شمارنده ---------- */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.2), transparent);
  border-radius: 0 0 0 100%;
}

/* ---------- بخش‌ها ---------- */
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-500), var(--neon-purple));
  border-radius: 2px;
  margin: 0 auto;
}

/* ---------- فرم ---------- */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 768px) {
  .hero-bg h1 {
    font-size: 1.75rem !important;
    line-height: 2.5rem !important;
  }

  .stat-card {
    padding: 1rem !important;
  }
}

/* ---------- اسکرول نرم ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- انتخاب متن ---------- */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}
