/* --------------------------
   فونت فارسی Vazirmatn
--------------------------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* --------------------------
   هدر و مگامنو داینامیک
--------------------------- */
.glass-header {
  background-color: transparent;
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.glass-header.scrolled {
  background-color: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.glass-header .megamenu-style {
  background: rgba(30, 30, 30, 0.80); /* شفاف‌تر و تیره‌تر برای جلوگیری از دیده شدن متن پشت */
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.glass-header.scrolled .megamenu-style {
  background: rgba(20, 20, 20, 0.8); /* هنگام اسکرول کمی تیره‌تر */
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@layer utilities {
  .drop-shadow-glow-red {
    filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.8)); /* قرمز روشن */
  }
}
/* --------------------------
   تنظیمات پایه
--------------------------- */
body {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 50%, #ececec 100%);
  color: #1a1a1a; /* رنگ متن تیره‌تر مناسب پس‌زمینه روشن */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.75;
}

/* --------------------------
   افکت ورود آرام (Fade-in)
--------------------------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out both;
}

/* --------------------------
   اصلاح لینک‌ها
--------------------------- */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
}

/* --------------------------
   برای انیمیشن tsParticles
--------------------------- */
#tsparticles {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* --------------------------
   سکشن برندها
--------------------------- */
.brand-section {
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.logo-item img {
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0.9;
}

.logo-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
  opacity: 1;
}

/* --------------------------
   نوار اسکرول
--------------------------- */
/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
  height: 8px;
}

/* رنگ پس‌زمینه نوار اسکرول */
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* پس‌زمینه تیره */
}

/* نوار اسکرول (Thumb) */
.custom-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(211, 47, 47, 0.5); /* قرمز مات */
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
}

/* افکت نور هنگام اسکرول */
.custom-scroll:active::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(211, 47, 47, 0.8); /* تابش قوی‌تر */
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.8); /* تابش نور */
}

/* افکت بر روی نوار اسکرول */
.custom-scroll {
  cursor: grab;
  transition: box-shadow 0.3s ease;
}

/* دست در حال کشیدن */
.custom-scroll:active {
  cursor: grabbing;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.6);
}

/* --------------------------
   رزومه
--------------------------- */
#resumeModal.opacity-100 .transform {
  transform: scale(1);
}

#resumeModal.opacity-0 .transform {
  transform: scale(0.95);
}

html { scroll-behavior: smooth; }         /* اسکرول نرم */