/* style.css - Dark Mode حرفه‌ای با فلسفه Off-black و Teal */

/* Light Mode - پایه */
:root {
  /* پس‌زمینه‌ها */
  --bg: #fefefe;
  --card-bg: #f9fafb;
  --surface: #ffffff;
  --surface-elevated: #ffffff;

  /* متن‌ها */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  /* رنگ‌های اصلی MinooSense - اشاره به رشد */
  --accent: #6366f1; /* Indigo - آبی روشن برای پیشرفت */
  --accent-light: #8b5cf6; /* Purple - ارغوانی ملایم برای بینش */
  --accent-dark: #4f46e5; /* Indigo تیره برای اعتماد */
  --accent-glow: rgba(99, 102, 241, 0.15);

  /* محدودیت‌ها */
  --border-primary: #e1e5e9;
  --border-secondary: rgba(99, 102, 241, 0.12);
  --border-subtle: rgba(0, 0, 0, 0.06);

  /* سایه‌ها */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Gradient - MinooSense: رشد از آبی به ارغوانی با حس روشنایی */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-surface: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.98)
  );
  --gradient-growth: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
  --gradient-flow: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);

  /* Backdrop */
  --backdrop-blur: rgba(255, 255, 255, 0.85);
  --backdrop-overlay: rgba(15, 23, 42, 0.1);

  /* Transition */
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Safe Areas */
  --safe-area-top: env(safe-area-inset-top);
  --safe-area-bottom: env(safe-area-inset-bottom);
  --safe-area-left: env(safe-area-inset-left);
  --safe-area-right: env(safe-area-inset-right);
  
  /* ============================================
     MODERN SPACING SYSTEM - مینیمال و یکپارچه
     ============================================ */
  /* Base spacing unit: 8px */
  --space-base: 8px;
  
  /* Spacing Scale - Progressive */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.5rem;   /* 40px */
  --space-10: 3rem;    /* 48px */
  --space-11: 3.5rem;  /* 56px */
  --space-12: 4rem;    /* 64px */
  --space-16: 6rem;    /* 96px */
  --space-20: 8rem;    /* 128px */
  
  /* Dynamic Spacing - Responsive با clamp */
  --space-xs: clamp(0.5rem, 0.625vw, 0.75rem);       /* 8px - 12px */
  --space-sm: clamp(0.75rem, 0.875vw, 1rem);         /* 12px - 16px */
  --space-md: clamp(1rem, 1.25vw, 1.5rem);           /* 16px - 24px */
  --space-lg: clamp(1.5rem, 2vw, 2rem);              /* 24px - 32px */
  --space-xl: clamp(2rem, 2.5vw, 3rem);              /* 32px - 48px */
  --space-2xl: clamp(3rem, 4vw, 4rem);               /* 48px - 64px */
  --space-3xl: clamp(4rem, 5vw, 6rem);               /* 64px - 96px */
  
  /* Section Spacing */
  --section-padding-y: var(--space-xl);
  --section-padding-x: var(--space-lg);
  --section-gap: var(--space-xl);
  
  /* Card Spacing */
  --card-padding: var(--space-lg);
  --card-gap: var(--space-md);
  --card-radius: clamp(16px, 2vw, 24px);
  
  /* Grid Gaps */
  --grid-gap-sm: var(--space-md);
  --grid-gap-md: var(--space-lg);
  --grid-gap-lg: var(--space-xl);
  
  /* Component Spacing */
  --button-padding-y: var(--space-sm);
  --button-padding-x: var(--space-lg);
  --input-padding: var(--space-sm);
  --header-height: clamp(60px, 8vw, 80px);
}

/* Dark Mode - حرفه‌ای با Off-black */
[data-theme="dark"] {
  /* پس‌زمینه‌ها - Off-black با ته‌رنگ slate */
  --bg: #0a0f1c; /* Off-black اصلی */
  --card-bg: #0f1623; /* کارت‌ها - کمی روشن‌تر */
  --surface: #141b2b; /* سطح دوم */
  --surface-elevated: #1a2132; /* سطح بالاتر */

  /* متن‌ها - روشن‌تر برای خوانایی بهتر */
  --text-primary: #f1f5f9; /* سفید نرم روشن - برای عناوین اصلی */
  --text-secondary: #cbd5e1; /* طوسی روشن - برای متن‌های فرعی */
  --text-muted: #94a3b8; /* طوسی متوسط - برای متن‌های کم‌اهمیت */
  --text-disabled: #64748b; /* طوسی کم‌رنگ - برای عناصر غیرفعال */

  /* رنگ‌های اصلی MinooSense - اشاره به رشد در Dark Mode */
  --accent: #8b5cf6; /* Purple - ارغوانی برای بینش هوش مصنوعی */
  --accent-light: #a78bfa; /* Purple روشن برای هایلایت */
  --accent-dark: #7c3aed; /* Purple تیره برای اعتماد */
  --accent-glow: rgba(139, 92, 246, 0.25);

  /* محدودیت‌ها - تقریباً نامرئی */
  --border-primary: rgba(255, 255, 255, 0.06);
  --border-secondary: rgba(139, 92, 246, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.03);

  /* سایه‌ها - عمق با لایه‌ها */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Gradient - MinooSense: جریان رشد در تاریکی با حس بینش */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #7c3aed 100%);
  --gradient-surface: linear-gradient(
    145deg,
    rgba(15, 22, 35, 0.95),
    rgba(10, 15, 28, 0.98)
  );
  --gradient-growth: linear-gradient(135deg, #1e1b4b 0%, #2d1b69 100%);
  --gradient-flow: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);

  /* Backdrop - Glassmorphism */
  --backdrop-blur: rgba(10, 15, 28, 0.75);
  --backdrop-overlay: rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Vazirmatn, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  padding: 0.5rem 1rem 0.25rem;
  overflow-x: hidden;
  line-height: 1.65;
  opacity: 0;
  animation: fadeIn 0.8s var(--transition-smooth) forwards;

  /* براق‌تر کردن متن فارسی */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body:lang(en) {
  font-family: Inter, Vazirmatn, sans-serif;
}

body:lang(fa) {
  font-family: Vazirmatn, Inter, sans-serif;
}

body:lang(ar) {
  font-family: "Cairo", Vazirmatn, Inter, sans-serif;
}

:lang(fa),
:lang(ar) {
  font-variant-numeric: lining-nums;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

@keyframes subtlePulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  }
  50% {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  }
}

@keyframes subtlePulseDark {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* MinooSense Animations - احساس جریان، بلندی و هایلایت */
@keyframes minooFlow {
  0% {
    transform: translateX(-100%) translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateX(0) translateY(-5px);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

@keyframes minooRise {
  0% {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes minooHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    transform: scale(1);
  }
}

@keyframes minooGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
  }
}

/* Logo & Brand */
.logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

#brand-name {
  direction: ltr !important;
}

/* ============================================
   TYPOGRAPHY SYSTEM - Modern & Responsive
   ============================================ */

/* Base Typography - MinooSense: آرام و خوانا */
body {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.8;
  letter-spacing: 0.015em;
}

/* Headings - Responsive با clamp */
h1 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem); /* 24px - 36px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem); /* 18px - 24px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* 16px - 20px */
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h4 {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.125rem); /* 15px - 18px */
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

h5, h6 {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 1rem); /* 14px - 16px */
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Paragraphs & Text */
p {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Tagline & Subtitle */
.tagline,
.page-subtitle {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.125rem); /* 15px - 18px */
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Language-specific Typography */
body:lang(fa),
body:lang(ar) {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.0625rem); /* 15px - 17px */
  line-height: 1.8;
  letter-spacing: 0;
}

body:lang(fa) h1,
body:lang(ar) h1 {
  letter-spacing: 0;
  line-height: 1.4;
}

body:lang(fa) h2,
body:lang(ar) h2 {
  letter-spacing: 0;
  line-height: 1.5;
}

body:lang(en) {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body:lang(en) h1 {
  letter-spacing: -0.025em;
}

body:lang(en) h2 {
  letter-spacing: -0.015em;
}

/* ============================================
   GLOBAL TYPOGRAPHY OPTIMIZATION
   ============================================ */

/* تمام عناصر متنی - بهینه‌سازی کلی */
* {
  /* اطمینان از خوانایی در تمام اندازه‌ها */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* لیست‌ها */
ul, ol {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.8;
}

li {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* لینک‌ها */
a {
  font-size: inherit;
  line-height: inherit;
}

/* Small Text */
small,
.small {
  font-size: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem); /* 13px - 14px */
  line-height: 1.6;
}

/* Strong & Bold */
strong,
b {
  font-weight: 600;
  color: var(--text-primary);
}

/* Emphasis */
em,
i {
  font-style: italic;
}

/* Code */
code {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  font-family: 'Courier New', monospace;
  line-height: 1.6;
}

/* Blockquote */
blockquote {
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.125rem); /* 16px - 18px */
  line-height: 1.8;
  font-style: italic;
  margin: 1.5rem 0;
  padding-right: 1.5rem;
  border-right: 3px solid var(--accent);
}

/* Buttons - فقط برای Actions */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.9375rem) clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  border-radius: clamp(16px, 14px + 1vw, 20px);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem); /* 15px - 16px */
  line-height: 1.5;
}

  /* جلوه نرم */
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.button::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;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.button:active {
  transform: translateY(-1px) scale(0.98);
}

.button-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Dark Mode Buttons */
[data-theme="dark"] .button {
  box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .button:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Controls - Glassmorphism حرفه‌ای */
.controls {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;

  /* Light Mode Glassmorphism */
  background: var(--backdrop-blur);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-secondary);

  border-radius: 24px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 1000;
  transition: all var(--transition-smooth);
  min-width: auto;
  max-width: max-content;
  animation: fadeInDown 0.6s var(--transition-bounce);
}

.controls.scrolled {
  top: 0.75rem;
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: 24px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.controls button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);

  /* جلوه نرم */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.controls button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.controls button:hover {
  background: var(--surface-elevated);
  border-color: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  color: var(--accent);
}

.controls button:hover::before {
  opacity: 1;
}

/* Language switcher dropdown */
.lang-switch {
  position: relative;
}

.lang-switch #lang {
  min-width: 56px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.lang-switch .lang-menu {
  position: absolute;
  top: 110%;
  inset-inline-start: 0;
  min-width: 160px;
  background: var(--backdrop-blur);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: none;
  padding: 0.75rem;
  z-index: 2000;
}

.lang-open .lang-switch .lang-menu {
  display: block;
}

.lang-switch .lang-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang-switch .lang-menu a:hover,
.lang-switch .lang-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch .lang-menu a.active {
  background: rgba(0, 121, 107, 0.12);
  border: 1px solid rgba(0, 121, 107, 0.2);
}

.lang-globe svg {
  display: block;
  opacity: 0.9;
}

.lang-label {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.5;
}

.lang-caret {
  font-size: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem); /* 13px - 14px */
  opacity: 0.7;
  color: var(--text-secondary);
}

.lang-check {
  font-size: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem); /* 13px - 14px */
  color: var(--accent, #00796b);
}

/* Menu Toggle */
.menu-toggle {
  position: relative;
}

.menu-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-icon span:nth-child(1) {
  width: 100%;
}
.menu-icon span:nth-child(2) {
  width: 75%;
  margin-right: auto;
}
.menu-icon span:nth-child(3) {
  width: 100%;
}

.menu-toggle:hover .menu-icon span:nth-child(2) {
  width: 100%;
}

.menu-toggle.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  width: 100%;
}

.menu-toggle.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 100%;
}

/* Menu Overlay & Content */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--backdrop-blur);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-md);
  border-left: 1px solid var(--border-primary);
  z-index: 95;
  padding: 5rem 1.5rem 2rem;
  transition: right var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.menu-content.active {
  right: 0;
}

body:lang(en) .menu-content {
  right: auto;
  left: -300px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body:lang(en) .menu-content.active {
  left: 0;
  right: auto;
}

/* Menu Header */
.menu-header {
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

.menu-header h3 {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem); /* 18px - 22px */
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

/* Menu Links */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
}

.menu-link::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.menu-link:hover::before,
.menu-link:focus::before {
  opacity: 0.05;
}

.menu-link:hover,
.menu-link:focus {
  background: var(--surface-elevated);
  border-color: var(--border-secondary);
  transform: translateX(-6px) scale(1.02);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

body:lang(en) .menu-link:hover,
body:lang(en) .menu-link:focus {
  transform: translateX(4px);
}

.menu-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.menu-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.menu-link:hover .menu-icon-wrapper {
  transform: scale(1.1);
}

.menu-text {
  font-weight: 500;
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  transition: color 0.2s ease;
  color: var(--text-secondary);
  line-height: 1.5;
}

.menu-link-hover-effect {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 4px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%);
}

.menu-link:hover .menu-link-hover-effect {
  height: 60%;
  right: 8px;
}

body:lang(en) .menu-link-hover-effect {
  right: auto;
  left: -10px;
}

body:lang(en) .menu-link:hover .menu-link-hover-effect {
  left: 8px;
}

/* Active Menu Link */
.menu-link-active {
  position: relative;
  border: 2px solid var(--accent) !important;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  ) !important;
  color: white !important;
  transform: translateX(-2px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  animation: subtlePulse 3s ease-in-out infinite;
}

body:lang(en) .menu-link-active {
  transform: translateX(2px) scale(1.02);
}

.menu-link-active::before {
  display: none !important;
}

.menu-link-active .menu-text {
  color: white !important;
  font-weight: 600;
}

.menu-link-active .menu-icon-wrapper {
  transform: scale(1.1);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-md) 0;
  max-width: 1000px;
  width: 100%;
}

.feature-card {
  background: var(--card-bg);
  padding: var(--space-md);
  border-radius: var(--card-radius);
  text-align: center;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--transition-smooth) forwards;
  position: relative;
  overflow: hidden;

  /* Light Mode */
  box-shadow: var(--shadow-sm);
}

.feature-card:nth-child(1) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.6s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Dark Mode Feature Cards */
[data-theme="dark"] .feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .feature-card:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.125rem); /* 16px - 18px */
  line-height: 1.5;
}

.feature-desc {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Links */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

/* Contact Links - محدود به Action */
.contact-link {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-smooth);
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: transparent;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  border-color: transparent;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Footer */
footer {
  margin-top: auto;
  padding: clamp(0.9rem, 0.9rem + 0.3vw, 1rem) 0;
  font-size: clamp(0.875rem, 0.875rem + 0.3125vw, 1rem); /* 14px - 16px */
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  line-height: 1.6;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-smooth);
  padding: 0.5rem;
  border-radius: 8px;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-copy {
  direction: ltr;
}

/* Page Content Styles */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-sm)) var(--space-sm) var(--space-sm) var(--space-xs);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.page-header {
  text-align: center;
  margin: var(--space-md);
  position: relative;
  animation: minooFlow 0.6s var(--transition-bounce);
}

.about-page {
  margin-bottom: var(--space-lg);
}

/* .page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
} */

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Grid & Cards */
.content-section {
  margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--grid-gap-md);
  margin-bottom: var(--space-2xl);
}

.about-page .content-grid {
  gap: 1.75rem;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  animation: fadeInUp 0.6s var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Light Mode Elevation */
  box-shadow: var(--shadow-sm);
}

.content-card:nth-child(2) {
  animation-delay: 0.1s;
}
.content-card:nth-child(3) {
  animation-delay: 0.2s;
}
.content-card:nth-child(4) {
  animation-delay: 0.3s;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.content-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--border-secondary);
}

/* Dark Mode Content Cards */
[data-theme="dark"] .content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .content-card:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.content-card:hover::before,
.content-card:hover::after {
  opacity: 1;
}

/* Content Icon */
.content-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.content-card:hover .content-icon {
  transform: scale(1.1) rotate(5deg);
}

.content-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.content-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: var(--gradient-primary);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover .content-icon::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

/* Content Text */
.content-card h2 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.4;
  position: relative;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.0625rem); /* 15px - 17px */
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Stats Section */
.stats-section {
  background: var(--gradient-primary);
  border-radius: 32px;
  padding: 4rem 2rem;
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Team Section */
.team-section {
  margin: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  text-align: center;
  transition: all var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
}

.team-name {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem); /* 18px - 22px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.team-role {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.0625rem); /* 15px - 17px */
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.team-bio {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Page Styles - MinooSense Optimized */
.contact-container {
  margin: 0 auto;
  padding: var(--space-xs) var(--space-xs) var(--space-xs);
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "icons" "form";
  gap: var(--space-sm);
  position: relative;
}

/* بهینه‌سازی برای صفحات بزرگ - MinooSense */
@media (min-width: 768px) {
  .contact-container {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    gap: var(--space-md);
  }
}

@media (min-width: 1200px) {
  .contact-container {
    padding: 2rem 2.5rem 4rem;
    max-width: 1400px;
    gap: 2rem;
    grid-template-columns: 1fr;
    grid-template-areas: "icons" "form";
    align-items: center;
  }

  .contact-grid.minimal-contact {
    grid-area: icons;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .contact-form-section {
    grid-area: form;
    max-width: 800px;
    width: 100%;
    justify-self: center;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap-md);
  margin: 0 auto;
  width: 100%;
}

/* Social Media Icons - MinooSense Minimal & Flowing */
.contact-grid.minimal-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1vw, 1rem);
  padding: var(--space-sm);
  border: none;
  border-radius: 16px;
  box-shadow: none;
  background: transparent;
  position: relative;
  z-index: 10;
  margin-bottom: 0;
  animation: minooFlow 0.8s var(--transition-bounce);
}

.contact-grid.minimal-contact.stacked-icons {
  position: relative;
  margin-bottom: 1rem;
  animation: minooRise 0.8s var(--transition-bounce) 0.2s both;
}

.contact-grid.minimal-contact .contact-icon-only {
  position: relative;
  width: clamp(3rem, 3.5vw, 4rem);
  height: clamp(3rem, 3.5vw, 4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--surface);
  backdrop-filter: blur(10px) saturate(180%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  animation: minooGlow 3s ease-in-out infinite;
}

/* Hover Effect - MinooSense Flowing */
.contact-grid.minimal-contact .contact-icon-only:hover,
.contact-grid.minimal-contact .contact-icon-only:focus-visible {
  transform: translateY(-4px) scale(1.1);
  color: var(--accent-light);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  animation: minooHighlight 1s ease-out;
}

.contact-grid.minimal-contact .contact-icon-only:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 16px;
}

.contact-grid.minimal-contact .contact-icon-only svg {
  width: clamp(1.5rem, 2vw, 2rem);
  height: clamp(1.5rem, 2vw, 2rem);
  z-index: 1;
  transition: all var(--transition-smooth);
}

.contact-grid.minimal-contact .contact-icon-only:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

/* Dark Mode - MinooSense */
[data-theme="dark"] .contact-grid.minimal-contact .contact-icon-only {
  background: var(--card-bg);
  border: 2px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .contact-grid.minimal-contact .contact-icon-only:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.5));
}

[data-theme="dark"] .contact-grid.minimal-contact .contact-icon-only:hover svg {
  filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.6));
  transform: scale(1.1);
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s var(--transition-bounce);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);

  /* Light Mode */
  box-shadow: var(--shadow-sm);
}

.contact-card:nth-child(2) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.3s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--border-secondary);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Dark Mode Contact Cards */
[data-theme="dark"] .contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .contact-card:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  margin-bottom: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem); /* 18px - 22px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.contact-card p {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  color: var(--text-secondary);
  margin: 0;
  direction: ltr;
  line-height: 1.7;
}

/* Contact Form - حرفه‌ای و مینیمال */
/* =============================================
   CONTACT FORM - مینیمال و جذاب
   ============================================= */

.contact-form-section {
  position: relative;
  overflow: visible;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  animation: minooRise 0.8s var(--transition-bounce) 0.4s both;
  transition: all var(--transition-smooth);
  width: 100%;
  backdrop-filter: blur(8px) saturate(180%);
}

@media (min-width: 768px) {
  .contact-form-section {
    padding: var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .contact-form-section {
    padding: var(--space-lg);
    height: fit-content;
  }
}

.contact-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-flow);
  pointer-events: none;
  opacity: 0.6;
  border-radius: inherit;
}

.contact-form-section:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.form-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.form-container h2 {
  font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.02em;
  position: relative;
}

.contact-form {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Desktop form layout */
@media (min-width: 1200px) {
  .contact-form {
    gap: 1rem;
  }

  .captcha-row {
    justify-content: space-between;
  }

  .captcha-input-wrap {
    flex: 1;
    max-width: 300px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

/* Form Error Messages - مینیمال */
.form-error {
  color: #ef4444;
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.8125rem);
  margin-top: 0.375rem;
  margin-bottom: 0;
  display: block;
  animation: slideDown 0.3s ease;
  line-height: 1.4;
  padding-right: 0.375rem;
}

[data-theme="dark"] .form-error {
  color: #fca5a5;
}

/* Loading State */
.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.submit-icon.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive - استفاده بیشتر از عرض - مینیمال */
@media (min-width: 1400px) {
  .contact-form {
    max-width: 90%;
  }
  
  .form-row {
    gap: clamp(1rem, 1.25vw, 1.5rem);
  }
}

@media (min-width: 1600px) {
  .contact-form {
    max-width: 85%;
  }
  
  .form-row {
    gap: clamp(1.25rem, 1.5vw, 1.75rem);
  }
}

@media (min-width: 1920px) {
  .contact-form {
    max-width: 80%;
  }
  
  .form-row {
    gap: clamp(1.5rem, 1.75vw, 2rem);
  }
}

/* Desktop Form Layout - 3 columns */
@media (min-width: 1200px) {
  .form-row:first-child {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row:not(:first-child) {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: auto;
    min-width: 160px;
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* ===== FAQ GRID RESPONSIVE SYSTEM ===== */
@media (max-width: 960px) {
.features {
  grid-template-columns: 1fr;
  gap: var(--grid-gap-sm);
}
}

/* Mobile */
@media (max-width: 767px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .faq-card {
    padding: 2rem;
    border-radius: 16px;
  }

  .faq-header h3 {
    font-size: 1.1rem;
  }

  .faq-content p {
    font-size: 0.9rem;
  }
}

/* Tablet & Small Desktop */
@media (min-width: 768px) and (max-width: 1199px) {
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  .faq-card {
    padding: 2.5rem;
    border-radius: 18px;
  }

  .faq-header h3 {
    font-size: 1.15rem;
  }

  .faq-content p {
    font-size: 0.925rem;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
  }

  .faq-card {
    padding: 3rem;
    border-radius: 20px;
  }

  .faq-header h3 {
    font-size: 1.25rem;
  }

  .faq-content p {
    font-size: 0.95rem;
  }
}

/* Responsive Form Styles - مینیمال */
@media (max-width: 768px) {
  .contact-container {
    padding: 1rem 1rem 2rem;
    gap: 1.5rem;
  }

  .contact-form-section {
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 100%;
  }

  .form-container h2 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.25rem, 1.3rem + 0.3vw, 1.5rem);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: var(--space-sm);
  }

  .form-group input,
  .form-group textarea {
    padding: clamp(0.625rem, 0.75vw, 0.75rem) clamp(0.625rem, 0.75vw, 0.75rem);
  }

  .form-group label {
    top: clamp(0.625rem, 0.75vw, 0.75rem);
    right: clamp(0.625rem, 0.75vw, 0.75rem);
    font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem);
  }

  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group input[data-filled] + label,
  .form-group textarea:focus + label,
  .form-group textarea:not(:placeholder-shown) + label,
  .form-group textarea[data-filled] + label {
    top: -0.4rem;
    font-size: clamp(0.6875rem, 0.625rem + 0.3125vw, 0.75rem);
  }

  .submit-button {
    padding: clamp(0.625rem, 0.75vw, 0.75rem) clamp(1rem, 1.25vw, 1.5rem);
    margin-top: var(--space-sm);
  }

  .contact-grid.minimal-contact.stacked-icons {
    top: -2.5rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0.5rem 0.5rem 1rem;
    gap: 1.5rem;
  }

  .contact-form-section {
    padding: var(--space-sm);
    border-radius: 12px;
  }

  .form-container h2 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
  }

  .contact-grid.minimal-contact {
    gap: 0.5rem;
    padding: 0.25rem;
  }

  .form-group {
    margin-bottom: clamp(0.75rem, 0.875vw, 1rem);
  }

  .form-container h2 {
    margin-bottom: var(--space-md);
  }
}

/* =============================================
   FORM STYLES - بازنویسی کامل
   ============================================= */

/* Form Groups - مینیمال و جذاب */
.form-group {
  position: relative;
  margin-bottom: var(--space-sm);
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: clamp(0.75rem, 0.875vw, 1rem) clamp(0.75rem, 0.875vw, 1rem);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface);
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  border-radius: clamp(8px, 1vw, 12px);
  box-shadow: none;
  -webkit-appearance: none;
  transition: all var(--transition-smooth);
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
  opacity: 0;
}

.form-group textarea {
  min-height: clamp(60px, 7vw, 90px);
  line-height: 1.6;
  padding-top: clamp(0.75rem, 0.875vw, 1rem);
}

.form-group label {
  position: absolute;
  top: clamp(0.75rem, 0.875vw, 1rem);
  right: clamp(0.75rem, 0.875vw, 1rem);
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  color: var(--text-secondary);
  pointer-events: none;
  transition: all var(--transition-smooth);
  transform-origin: right center;
  background: var(--surface);
  padding: 0 0.25rem;
  z-index: 1;
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-underline {
  display: none;
}

/* Floating Label Effect - مینیمال */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input[data-filled] + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group textarea[data-filled] + label {
  top: -0.5rem;
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.8125rem);
  color: var(--accent);
  transform: scale(0.85);
  font-weight: 500;
  background: var(--card-bg);
  padding: 0 0.25rem;
}

/* Focus State - مینیمال */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.06);
}

/* Error State */
.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #ef4444;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) + label,
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) + label {
  color: #ef4444;
}

/* Success State */
.form-group input:valid:not(:placeholder-shown):not(:focus),
.form-group textarea:valid:not(:placeholder-shown):not(:focus) {
  border-color: var(--accent);
}

/* Submit Button - مینیمال و جذاب */
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 0.5vw, 0.5rem);
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: clamp(0.75rem, 0.875vw, 1rem) clamp(1.5rem, 1.75vw, 2rem);
  border-radius: clamp(8px, 1vw, 12px);
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-top: var(--space-md);
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.4s;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-icon {
  transition: transform var(--transition-smooth);
  width: clamp(16px, 1.25vw, 18px);
  height: clamp(16px, 1.25vw, 18px);
}

.submit-button:hover .submit-icon {
  transform: translateX(3px);
}

/* CAPTCHA - همه آیتم‌ها در یک خط، مینیمال */
.captcha-container {
  display: none; /* قدیمی */
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-sm) 0 var(--space-md) 0;
  user-select: none;
  flex-wrap: wrap;
}

.captcha-img {
  height: 38px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
  user-select: none;
  -webkit-user-drag: none;
}

.captcha-refresh {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-weight: 700;
  line-height: 1;
}

.captcha-refresh:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.captcha-refresh:active {
  transform: translateY(0);
}

.captcha-input-wrap {
  position: relative;
  min-width: 100px;
  max-width: 160px;
  flex: 1 1 auto;
}

.captcha-input-wrap input {
  width: 100%;
  padding: clamp(0.6rem, 0.7vw, 0.75rem) clamp(0.6rem, 0.7vw, 0.75rem);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface);
  font-size: clamp(0.875rem, 0.85rem + 0.125vw, 0.9rem);
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.captcha-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
  background: var(--surface-elevated);
}

.captcha-input-wrap label {
  position: absolute;
  top: 50%;
  right: clamp(0.5rem, 0.6vw, 0.7rem);
  transform: translateY(-50%);
  background: var(--surface);
  padding: 0 0.2rem;
  color: var(--text-secondary);
  font-size: clamp(0.75rem, 0.725rem + 0.125vw, 0.8rem);
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.captcha-input-wrap input:focus + label,
.captcha-input-wrap input:not(:placeholder-shown) + label {
  top: -0.4rem;
  font-size: clamp(0.65rem, 0.625rem + 0.125vw, 0.7rem);
  color: var(--accent);
  background: var(--card-bg);
}

@media (max-width: 640px) {
  .captcha-row {
    gap: 0.35rem;
  }
  .captcha-img {
    height: 34px;
  }
  .captcha-input-wrap {
    min-width: 110px;
    max-width: 140px;
  }
}

/* Form Messages - مینیمال */
.form-message {
  padding: clamp(0.75rem, 0.875vw, 0.875rem) clamp(0.875rem, 1vw, 1rem);
  border-radius: clamp(8px, 1vw, 10px);
  margin-bottom: clamp(0.75rem, 1vw, 1rem);
  margin-top: 0;
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem);
  line-height: 1.5;
  display: none;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.form-message.info {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

/* Dark Mode Form Messages - مینیمال */
[data-theme="dark"] .form-message.success {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent);
  color: var(--accent-light);
}

[data-theme="dark"] .form-message.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #fca5a5;
}

[data-theme="dark"] .form-message.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  color: #93c5fd;
}

/* .sharing-card {
  display: flex;
  flex-direction: row;
    gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.section-content,
.usage-grid{
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
} */

/* Usage Grid */
.usage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
}

@media (min-width: 768px) {
  .usage-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .usage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .usage-grid {
    gap: var(--space-xl);
  }
}

.usage-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 0;
  width: 100%;
  transition: all var(--transition-smooth);
}

@media (min-width: 1200px) {
  .usage-item {
    padding: var(--space-lg);
    gap: var(--space-md);
    border-radius: 24px;
  }
}

@media (min-width: 1600px) {
  .usage-item {
    padding: var(--space-xl);
    gap: var(--space-lg);
  }
}

.usage-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

@media (min-width: 1200px) {
  .usage-icon {
    width: 56px;
    height: 56px;
  }
}

/* Sharing Info */
.sharing-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .sharing-info {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1200px) {
  .sharing-info {
    gap: var(--space-lg);
  }
}

.sharing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 0;
  width: 100%;
  transition: all var(--transition-smooth);
}

@media (min-width: 1200px) {
  .sharing-card {
    padding: var(--space-lg);
    border-radius: 24px;
  }
}

.sharing-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
  .sharing-icon {
    width: 56px;
    height: 56px;
  }
}

/* Security Features */
.security-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .security-features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.security-item {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 0;
  width: 100%;
  transition: all var(--transition-smooth);
}

@media (min-width: 1200px) {
  .security-item {
    padding: var(--space-lg);
    gap: var(--space-md);
    border-radius: 24px;
  }
}

.security-level {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.5rem;
}

.security-level.high {
  background: var(--accent);
}

.security-level.medium {
  background: var(--accent-light);
}

/* Rights Grid */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .rights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.right-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 0;
  width: 100%;
  transition: all var(--transition-smooth);
}

@media (min-width: 1200px) {
  .right-item {
    padding: var(--space-lg);
    border-radius: 24px;
  }
}

.right-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
  .right-icon {
    width: 56px;
    height: 56px;
  }
}

/* Update Process */
.update-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
}

@media (min-width: 768px) {
  .update-process {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .update-process {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.process-step {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 0;
  width: 100%;
  transition: all var(--transition-smooth);
}

@media (min-width: 1200px) {
  .process-step {
    padding: var(--space-lg);
    gap: var(--space-md);
    border-radius: 24px;
  }
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

@media (min-width: 1200px) {
  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

/* Providers List */
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  width: 100%;
}

@media (min-width: 1200px) {
  .providers-list {
    padding: var(--space-lg);
    border-radius: 24px;
  }
}

.providers-list h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.providers-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.providers-list li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-right: 1.5rem;
}

.providers-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: bold;
}

/* FAQ Styles */
/* Terms Content - لیست عمودی از sections */
.terms-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  margin: 0;
  padding: 0;
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .terms-content {
    gap: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .terms-content {
    gap: var(--space-lg);
  }
}

/* FAQ Grid - Based on Content Grid Structure */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  animation: fadeInUp 0.6s var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  /* Light Mode Elevation */
  box-shadow: var(--shadow-sm);
}

.faq-card:nth-child(2) { animation-delay: 0.1s; }
.faq-card:nth-child(3) { animation-delay: 0.2s; }
.faq-card:nth-child(4) { animation-delay: 0.3s; }

.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.faq-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-secondary);
}

.faq-card:hover::before,
.faq-card:hover::after {
  opacity: 1;
}

/* Dark Mode FAQ Cards */
[data-theme="dark"] .faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .faq-card:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="dark"] .faq-card.active {
  background: var(--surface-elevated);
  border-color: var(--accent);
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.faq-header h3 {
  font-size: clamp(1rem, 0.875rem + 0.25vw, 1.25rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  transition: color var(--transition-smooth);
}

.faq-card:hover .faq-header h3 {
  color: var(--accent-light);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: all var(--transition-smooth);
  color: var(--text-muted);
  opacity: 0.7;
  margin-left: auto;
}

.faq-card:hover .faq-icon {
  opacity: 1;
  color: var(--accent);
  transform: rotate(180deg) scale(1.1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
  width: 100%;
}

.faq-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
  margin: 0;
}

.faq-card.active {
  background: var(--surface-elevated);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.faq-card.active::before {
  opacity: 1;
}

.faq-card.active .faq-icon {
  transform: rotate(180deg) scale(1.1);
  color: var(--accent);
  opacity: 1;
}

.faq-card.active .faq-content {
  max-height: 600px;
  margin-top: 1.5rem;
  opacity: 1;
  transform: translateY(0);
}

.faq-card.active .faq-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Privacy & Terms Styles */
.privacy-container,
.error-container,
.terms-container {
  margin: 0 auto;
  padding: clamp(0.5rem, 0.75rem + 0.5vw, 1rem) clamp(0.5rem, 0.5rem + 0.5vw, 1rem);
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1rem + 0.5vw, 1.25rem);
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .privacy-container,
  .error-container,
  .terms-container {
    padding: var(--space-lg) var(--space-md);
    max-width: 1600px;
    gap: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .privacy-container,
  .error-container,
  .terms-container {
    padding: var(--space-2xl) var(--space-xl);
    max-width: 1800px;
  }
}

.privacy-container .page-header,
.terms-container .page-header {
  text-align: center;
}

.last-updated {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  width: max-content;
}

.language-toggle {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 2rem;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 1rem 2rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Summary Cards */
.privacy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  width: 100%;
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .privacy-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .privacy-summary {
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
  }
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.summary-card:nth-child(1) {
  animation-delay: 0.1s;
}
.summary-card:nth-child(2) {
  animation-delay: 0.2s;
}
.summary-card:nth-child(3) {
  animation-delay: 0.3s;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.summary-card:hover::before {
  opacity: 1;
}

.summary-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.summary-card:hover .summary-icon {
  transform: scale(1.1);
}

.summary-icon svg {
  stroke: white;
}

.summary-card h3 {
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem); /* 18px - 22px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.summary-card p {
  font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 0.9375rem); /* 14px - 15px */
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Privacy & Terms Sections */
.privacy-section,
.terms-section {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .privacy-section,
  .terms-section {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border-radius: 28px;
  }
}

@media (min-width: 1600px) {
  .privacy-section,
  .terms-section {
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
    border-radius: 32px;
  }
}

.privacy-section::before,
.terms-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-section:hover,
.terms-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.privacy-section:hover::before,
.terms-section:hover::before {
  opacity: 1;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 1200px) {
  .section-header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1600px) {
  .section-header {
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
}

.section-badge,
.section-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .section-badge,
  .section-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 16px;
  }
}

@media (min-width: 1600px) {
  .section-badge,
  .section-number {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    border-radius: 24px;
  }
}

.section-header h2 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.4;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .privacy-content {
    gap: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .privacy-content {
    gap: var(--space-xl);
  }
}

/* Data Categories */
.data-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

/* بهینه‌سازی برای صفحات بزرگ */
@media (min-width: 1200px) {
  .data-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1600px) {
  .data-categories {
    gap: var(--space-xl);
  }
}

.data-category,
.usage-item,
.sharing-card,
.security-item,
.right-item,
.process-step {
  width: 100%;
}

.data-category h4 {
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* 16px - 20px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  line-height: 1.5;
}

.data-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-category li {
  position: relative;
  padding: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: start;
}

.data-category li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: bold;
}

/* Acceptance Sections */
.acceptance-section {
  margin-top: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.7s both;
  width: 100%;
}

@media (min-width: 1200px) {
  .acceptance-section {
    margin-top: var(--space-2xl);
  }
}

@media (min-width: 1600px) {
  .acceptance-section {
    margin-top: var(--space-3xl);
  }
}

.acceptance-card {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: var(--space-lg);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .acceptance-card {
    padding: var(--space-lg);
    border-radius: 28px;
  }
}

@media (min-width: 1600px) {
  .acceptance-card {
    padding: var(--space-xl);
    border-radius: 32px;
  }
}

.acceptance-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acceptance-card h3 {
  font-size: clamp(1.5rem, 1.375rem + 0.625vw, 2rem); /* 24px - 32px */
  font-weight: 700;
  margin-bottom: clamp(1rem, 0.875rem + 0.625vw, 1.5rem);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.acceptance-card p {
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem); /* 16px - 20px */
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  position: relative;
  z-index: 1;
  max-width: clamp(700px, 60vw, 1000px);
  margin-left: auto;
  margin-right: auto;
}

.acceptance-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

@media (min-width: 1200px) {
  .acceptance-actions {
    gap: 1.5rem;
  }
}

@media (min-width: 1600px) {
  .acceptance-actions {
    gap: 2rem;
  }
}

.error-container p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  background: var(--border-primary);
  z-index: 90;
}

.progress-bar {
  width: 100%;
  background: var(--gradient-primary);
  transition: height 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* .page-header h1 {
    font-size: 3rem;
  } */

  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding: var(--space-sm) var(--space-sm) var(--space-xs);
  }

  .controls {
    top: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    gap: var(--space-xs);
    border-radius: 14px;
  }

  .controls.scrolled {
    top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 12px;
  }

  .controls button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .menu-content {
    width: 250px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-sm);
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .contact-links {
    gap: var(--space-md);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  /* Typography با clamp() خودکار responsive است */

  .page-content {
    padding: calc(var(--header-height) + var(--space-xs)) var(--space-xs) var(--space-xs) var(--space-xs);
  }

  .page-header {
    margin-bottom: var(--space-sm);
  }

  /* .page-header h1 {
    font-size: 2.5rem;
  } */

  .page-subtitle {
    font-size: 1.1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-sm);
  }

  .contact-grid.minimal-contact {
    gap: var(--space-md);
  }

  .content-card {
    padding: var(--space-lg);
    border-radius: var(--card-radius);
  }

  .content-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--space-lg);
  }

  .content-icon svg {
    width: 28px;
    height: 28px;
  }

  .stats-section {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--card-radius);
  }

  .stats-grid {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-sm);
  }

  .contact-container {
    padding: var(--space-xs);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-sm);
    margin-bottom: var(--space-xl);
  }

  .contact-card {
    padding: var(--space-lg);
    border-radius: var(--card-radius);
  }

  .contact-form-section {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--card-radius);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Typography با clamp() خودکار responsive است */

  .terms-content {
    gap: var(--space-sm);
  }



  /* Typography با clamp() خودکار responsive است */

  .privacy-container,
  .error-container,
  .terms-container {
    padding: var(--space-sm);
  }

  .language-toggle {
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .privacy-section,
  .terms-section {
    padding: var(--space-md);
    border-radius: 16px;
  }

  .section-header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .data-categories {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .usage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sharing-info {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .rights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .acceptance-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 200px;
  }

  .section-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  /* Typography با clamp() خودکار responsive است */

  .acceptance-card {
    padding: var(--space-md);
    border-radius: 24px;
  }

  /* Typography با clamp() خودکار responsive است */
}

@media (max-width: 480px) {
  .controls {
    top: 0.75rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .controls.scrolled {
    top: 0.25rem;
    padding: 0.4rem 0.8rem;
  }

  .controls button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .menu-icon {
    width: 16px;
    height: 12px;
  }

  /* .page-header h1 {
    font-size: 2rem;
  } */

  .content-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .content-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
  }

  .content-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Typography با clamp() خودکار responsive است */

  .contact-grid.minimal-contact {
    gap: 0.75rem;
  }

  .stats-section {
    padding: 2rem 1rem;
    border-radius: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-form-section {
    padding: var(--space-md) var(--space-sm);
    border-radius: 16px;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .terms-content {
    gap: 1rem;
  }

  .faq-grid {
    padding: var(--space-xs);
    gap: var(--space-md);
  }

  .faq-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .faq-header h3 {
    font-size: 1rem;
  }

  .faq-content p {
    font-size: 0.9rem;
  }

  .privacy-section,
  .terms-section {
    padding: 1.5rem;
  }

  .lang-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .acceptance-card {
    padding: 1.5rem;
  }

  .usage-item,
  .security-item,
  .process-step {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
}

@media (max-width: 640px) {
  .contact-grid.minimal-contact {
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .contact-grid.minimal-contact .contact-icon-only {
    width: 3rem;
    height: 3rem;
  }
}

/* Light Mode Consistent Styling */
body:not([data-theme="dark"]) .team-card,
body:not([data-theme="dark"]) .contact-form-section,
body:not([data-theme="dark"]) .privacy-section,
body:not([data-theme="dark"]) .terms-section,
body:not([data-theme="dark"]) .summary-card,
body:not([data-theme="dark"]) .usage-item,
body:not([data-theme="dark"]) .security-item,
body:not([data-theme="dark"]) .right-item,
body:not([data-theme="dark"]) .process-step,
body:not([data-theme="dark"]) .providers-list,
body:not([data-theme="dark"]) .acceptance-card,
body:not([data-theme="dark"]) .language-toggle {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

body:not([data-theme="dark"]) .team-card:hover,
body:not([data-theme="dark"]) .privacy-section:hover,
body:not([data-theme="dark"]) .terms-section:hover,
body:not([data-theme="dark"]) .summary-card:hover,
body:not([data-theme="dark"]) .usage-item:hover,
body:not([data-theme="dark"]) .security-item:hover,
body:not([data-theme="dark"]) .right-item:hover,
body:not([data-theme="dark"]) .process-step:hover,
body:not([data-theme="dark"]) .providers-list:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

/* Dark Mode Form Styles - مینیمال و جذاب */
[data-theme="dark"] .contact-form-section {
  background: var(--card-bg);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .contact-form-section::before {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(45, 212, 191, 0.05),
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.05), transparent 50%);
  opacity: 0.3;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: var(--surface);
  border-color: var(--border-primary);
  color: #f1f5f9 !important;
  box-shadow: none;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: transparent;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

[data-theme="dark"] .form-group label {
  background: var(--surface);
  color: #cbd5e1 !important;
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group textarea:focus + label,
[data-theme="dark"] .form-group input:not(:placeholder-shown) + label,
[data-theme="dark"] .form-group input[data-filled] + label,
[data-theme="dark"] .form-group textarea:not(:placeholder-shown) + label,
[data-theme="dark"] .form-group textarea[data-filled] + label {
  color: var(--accent) !important;
  background: var(--card-bg);
}

[data-theme="dark"] .form-group input:invalid:not(:placeholder-shown):not(:focus) + label,
[data-theme="dark"] .form-group textarea:invalid:not(:placeholder-shown):not(:focus) + label {
  color: #fca5a5 !important;
}

/* === DARK MODE COMPREHENSIVE FIXES === */

/* اصلاح کلی عناصر اصلی */
[data-theme="dark"] {
  /* اطمینان از رنگ‌بندی درست */
  --text: var(--text-primary);
}

[data-theme="dark"] body {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
  /* بهبود خوانایی متن فارسی */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] h1 {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً برای Dark Mode */
  font-weight: 600;
}

[data-theme="dark"] h2 {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً برای Dark Mode */
  font-weight: 600;
  opacity: 0.95;
}

[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً برای Dark Mode */
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"]
  div:not(.content-icon):not(.team-avatar):not(.summary-icon):not(
    .section-badge
  ):not(.section-number) {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* اطمینان از رنگ‌بندی درست عناصر خاص */
[data-theme="dark"] .tagline {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
  opacity: 0.95;
}

[data-theme="dark"] .feature-desc,
[data-theme="dark"] .contact-card p,
[data-theme="dark"] .content-card p,
[data-theme="dark"] .team-bio,
[data-theme="dark"] .faq-content p,
[data-theme="dark"] .summary-card p,
[data-theme="dark"] .privacy-content p,
[data-theme="dark"] .terms-content p {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
  line-height: 1.7;
}

/* عناوین کارت‌ها - استفاده از Accent برای برجستگی */
[data-theme="dark"] .feature-title,
[data-theme="dark"] .content-card h2,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .team-name,
[data-theme="dark"] .summary-card h3,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .faq-header h3 {
  color: #2dd4bf !important; /* Teal - مستقیماً */
}

[data-theme="dark"] .menu-text,
[data-theme="dark"] .lang-label,
[data-theme="dark"] .menu-link,
[data-theme="dark"] .menu-link-content {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
}

/* لینک‌های منو - روشن در Dark Mode */
[data-theme="dark"] .menu-link {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
}

[data-theme="dark"] .menu-link:hover,
[data-theme="dark"] .menu-link:focus {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
}

[data-theme="dark"] .lang-caret {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* لینک‌های فوتر - روشن‌تر */
[data-theme="dark"] .footer-link,
[data-theme="dark"] footer {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

[data-theme="dark"] .footer-link:hover {
  color: var(--accent-light) !important;
}

/* لینک‌های تماس - روشن در Dark Mode */
[data-theme="dark"] .contact-link {
  color: var(--accent-light) !important;
}

[data-theme="dark"] .contact-link:hover {
  color: #ffffff !important;
}

/* لینک‌های منوی زبان - روشن در Dark Mode */
[data-theme="dark"] .lang-switch .lang-menu a {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
}

[data-theme="dark"] .lang-switch .lang-menu a:hover,
[data-theme="dark"] .lang-switch .lang-menu a:focus-visible {
  color: #f1f5f9 !important; /* سفید نرم روشن - مستقیماً */
}

/* === اطمینان از روشن بودن تمام متون در Dark Mode === */

/* تمام لینک‌های عمومی - حداقل رنگ روشن */
[data-theme="dark"]
  a:not(.button):not(.button-secondary):not(.menu-link-active):not(
    .acceptance-card a
  ):not(.stats-section a) {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

[data-theme="dark"]
  a:not(.button):not(.button-secondary):not(.menu-link-active):not(
    .acceptance-card a
  ):not(.stats-section a):hover {
  color: #5eead4 !important; /* Teal روشن - مستقیماً */
}

/* تمام label ها و عناصر فرم */
[data-theme="dark"] label {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* تمام li ها در لیست‌ها */
[data-theme="dark"] li:not(.menu-link-active li):not(.acceptance-card li) {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* اطمینان از روشن بودن تمام عناصر متنی */
[data-theme="dark"] .data-category li,
[data-theme="dark"] .usage-item,
[data-theme="dark"] .security-item,
[data-theme="dark"] .right-item,
[data-theme="dark"] .process-step,
[data-theme="dark"] .providers-list {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* تمام عناصر داخل کارت‌ها */
[data-theme="dark"]
  .content-card
  *:not(h2):not(.content-icon):not(.content-icon *),
[data-theme="dark"]
  .feature-card
  *:not(.feature-title):not(.feature-icon):not(.feature-icon *),
[data-theme="dark"]
  .contact-card
  *:not(h3):not(.contact-icon):not(.contact-icon *),
[data-theme="dark"]
  .team-card
  *:not(.team-name):not(.team-role):not(.team-avatar):not(.team-avatar *),
[data-theme="dark"]
  .summary-card
  *:not(h3):not(.summary-icon):not(.summary-icon *),
[data-theme="dark"] .faq-card *:not(.faq-header h3):not(.faq-icon) {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
}

/* زیرعنوان صفحه - بهبود خوانایی */
[data-theme="dark"] .page-subtitle {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
  opacity: 0.9;
}

/* بهبود خوانایی برای تمام متن‌های توضیحی */
[data-theme="dark"] .content-card p,
[data-theme="dark"] .feature-desc,
[data-theme="dark"] .team-bio {
  color: #cbd5e1 !important; /* طوسی روشن - مستقیماً */
  opacity: 0.95;
}

/* Dark Mode Controls - Glassmorphism با Off-black */
[data-theme="dark"] .controls {
  background: var(--backdrop-blur);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    var(--shadow-glow);
}

[data-theme="dark"] .controls.scrolled {
  background: var(--backdrop-blur);
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(45, 212, 191, 0.08) inset;
}

[data-theme="dark"] .controls button {
  background: var(--surface);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .controls button:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Dark Mode Team Cards و سایر کامپوننت‌ها */
[data-theme="dark"] .team-card,
[data-theme="dark"] .privacy-section,
[data-theme="dark"] .terms-section,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .usage-item,
[data-theme="dark"] .security-item,
[data-theme="dark"] .right-item,
[data-theme="dark"] .process-step,
[data-theme="dark"] .providers-list {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .team-card:hover,
[data-theme="dark"] .privacy-section:hover,
[data-theme="dark"] .terms-section:hover,
[data-theme="dark"] .summary-card:hover,
[data-theme="dark"] .usage-item:hover,
[data-theme="dark"] .security-item:hover,
[data-theme="dark"] .right-item:hover,
[data-theme="dark"] .process-step:hover,
[data-theme="dark"] .providers-list:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="dark"] .language-toggle,
[data-theme="dark"] .last-updated {
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

/* Restrictions List */
.restrictions-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.restrictions-list li {
  position: relative;
  padding: 1rem 1.5rem;
  padding-right: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: all var(--transition-smooth);
}

.restrictions-list li::before {
  content: "✕";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.restrictions-list li:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
  transform: translateX(-4px);
}

@media (min-width: 1200px) {
  .restrictions-list {
    gap: 1.25rem;
    margin: 2rem 0;
  }

  .restrictions-list li {
    padding: 1.25rem 2rem;
    padding-right: 3rem;
    border-radius: 16px;
  }
}

/* Acceptance Icon */
.acceptance-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .acceptance-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
  }
}

.acceptance-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

@media (min-width: 1200px) {
  .acceptance-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* Acceptance Date */
.acceptance-date {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

@media (min-width: 1200px) {
  .acceptance-date {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    font-size: 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }
}

.acceptance-date strong {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (min-width: 1200px) {
  .acceptance-date strong {
    font-size: 1.2rem;
  }
}

/* Dark Mode Restrictions List */
[data-theme="dark"] .restrictions-list li {
  background: var(--card-bg);
  border-color: var(--border-primary);
  color: #cbd5e1 !important;
}

[data-theme="dark"] .restrictions-list li::before {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

[data-theme="dark"] .restrictions-list li:hover {
  background: var(--surface);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .menu-link-active {
  border-color: var(--accent-light) !important;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  ) !important;
  animation: subtlePulseDark 3s ease-in-out infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .menu-link-active {
    animation: none;
    transform: none !important;
  }

  body:lang(en) .menu-link-active {
    transform: none !important;
  }

  .menu-link,
  .menu-link-content,
  .menu-icon-wrapper,
  .menu-link-hover-effect {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .language-toggle,
  .controls {
    display: none;
  }

  .page-content,
  .terms-section {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .acceptance-card {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
  }
}

.section-content {
  text-align: start;
  width: 100%;
}

.section-content {
  padding: 0;
}

.section-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.0625rem); /* 15px - 17px */
  margin-bottom: clamp(1rem, 0.875rem + 0.625vw, 1.5rem);
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Dark Mode Section Content */
[data-theme="dark"] .section-content p {
  color: #cbd5e1 !important;
}

/* ============================================
   404 ERROR PAGE STYLES - مینیمال و مدرن
   ============================================ */

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  animation: fadeInUp 0.8s var(--transition-bounce) 0.3s both;
}

.error-subtitle {
  font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem); /* 20px - 28px */
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
  animation: fadeInUp 0.8s var(--transition-bounce) 0.2s both;
}

.error-container p {
  font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.125rem); /* 16px - 18px */
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.error-button {
  margin-top: var(--space-md);
  min-width: 200px;
}

/* 404 Page Specific Title */
.page-header h1[data-i18n-key="error.title"] {
  font-size: clamp(4rem, 6vw, 8rem); /* 64px - 128px */
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-sm);
  line-height: 1;
  animation: fadeInUp 0.8s var(--transition-bounce) both;
}

/* Dark Mode 404 */
[data-theme="dark"] .error-subtitle,
[data-theme="dark"] .error-container p {
  color: #cbd5e1 !important;
}

/* ============================================
   HOME PAGE REFINEMENTS - مینیمال و مدرن
   ============================================ */

/* Secondary CTA Section */
.secondary-cta {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s var(--transition-bounce) 0.8s both;
}

/* Unified Button Spacing */
.button,
.button-secondary {
  padding: var(--button-padding-y) var(--button-padding-x);
  margin: var(--space-xs) 0;
}

/* Logo Refinements */
.logo {
  margin: 0 auto var(--space-md) auto;
}

/* Brand Name & Taglines */
#brand-name {
  margin-bottom: var(--space-sm);
}

#tagline-fa,
#tagline-en,
#tagline-ar {
  margin-bottom: var(--space-lg);
}

/* CTA Button Spacing */
#cta {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}
