@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته */
}

/* Header transition logic */
header.scrolled {
    width: 100%;
    top: 0;
    max-width: 100% !important; /* اطمینان از پر شدن عرض */
    left: 0 !important;
    transform: none !important;
}

header.scrolled .bg-white\/80 {
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    border-radius: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Nav Link Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities for Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Floating Animation for Bio Image */
@keyframes slowFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-slow {
    animation: slowFloat 8s ease-in-out infinite;
}
/* مخفی کردن اسکرول‌بار */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* تعریف ابعاد مشترک */
.size-5 {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-local {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* آدرس‌دهی به فایل‌های لوکال */
.icon-instagram {
  background-image: url('/asset/icons/instagram.svg');
}

.icon-telegram {
  background-image: url('/asset/icons/telegram.svg');
}

.icon-whatsapp {
  background-image: url('/assest/icons/whatsapp.svg');
}
.icon-bale {
  background-image: url('/asset/icons/bale.svg');
}