/* =========================================================
   🌐 Global Styles
========================================================= */
body {
  font-family: "iransans","Vazirmatn", sans-serif;
  background-color: #f9fafb;
  padding-top: 90px;
}


@font-face {
  font-family: 'iransans';
  src: url('../../fonts/irsans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}







/* =========================================================
   🌟 Navbar Base & Glass Style
========================================================= */
#main-navbar {
  transition: all 0.5s ease-in-out;
}

.navbar-glass {
  background: rgba(44, 62, 80, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 🔹 لینک‌های منو */
.nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 🔹 حالت باز شدن منو در موبایل */
.navbar-collapse.show {
  background-color: rgba(44, 62, 80, 0.95);
  border-radius: 12px;
  padding: 15px;
}

/* =========================================================
   🔻 Navbar هنگام اسکرول (افکت fade + blur + scale)
========================================================= */
#main-navbar.scrolled {
  background: rgba(44, 62, 80, 0.92);
  backdrop-filter: blur(10px);
  transform: scale(0.97);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  transition: all 0.5s ease-in-out;
}

/* 🔹 لوگو و عنوان در حالت اسکرول */
#main-navbar.scrolled .navbar-brand img {
  height: 45px !important;
  filter: brightness(0.95);
  transition: all 0.4s ease;
}

#main-navbar.scrolled .navbar-brand span {
  font-size: 0.95rem !important;
  color: #fff6a6;
  opacity: 0.95;
  transition: all 0.4s ease;
}

/* 🔹 افکت fade-in هنگام برگشت */
@keyframes navbarFadeIn {
  from {
    opacity: 0.5;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#main-navbar.visible {
  animation: navbarFadeIn 0.6s ease forwards;
}

/* =========================================================
   🖼️ Logo
========================================================= */
.navbar-brand img {
  height: 60px;
  width: auto;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0px;
}

/* =========================================================
   🔽 Dropdown & Submenu
========================================================= */
.dropdown-menu {
  border: none;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  transition: all 0.3s ease;
  text-align: right;
}

.dropdown-item {
  color: #333;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f2f2f2;
  color: #2c3e50;
}

/* 🔹 زیرمنو */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  margin-top: -1px;
  display: none;
  position: absolute;
}


/* فقط برای دسکتاپ */
@media (max-width: 991px) {
  .dropdown-submenu .dropdown-menu {
    display: none;
  }

  .dropdown-submenu .dropdown-menu.show {
    display: block;
  }
}



/* 🔹 فلش جهت‌نما */
.dropdown-submenu > a::after {
  content: "";
  transform: rotate(180deg);
  float: left;
  margin-left: 6px;
  opacity: 0.6;
}

@media (min-width: 992px) {

  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }

}

/* 💻 برای دسکتاپ */
@media (min-width: 992px) {
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    position: absolute;
  }
}

/* 📱 برای موبایل */
@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin: 0 !important;
    border: none;
    box-shadow: none;
    background-color: #f8f9fa;
    padding-left: 1rem;
  }

  .dropdown-submenu > a::after {
    float: left;
    transform: rotate(90deg);
  }
}


/* =========================================================
   🌍 Top Language Panel
========================================================= */
#top-language-panel {
  background: rgba(143, 2, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease-in-out;
}

/* 🔹 حالت فشرده هنگام اسکرول */
#top-language-panel.scrolled {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  background: rgba(143, 2, 0, 0.75);
  backdrop-filter: blur(12px);
  transform: scale(0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* 🔹 محو شدن و بازگشت */
#top-language-panel.hidden {
  opacity: 0;
  transform: translateY(-100%) scale(0.95);
  pointer-events: none;
  transition: all 0.5s ease-in-out;
}

#top-language-panel.visible {
  animation: glowBack 0.8s ease forwards;
}

@keyframes glowBack {
  from {
    filter: brightness(0.8) blur(4px);
    opacity: 0.4;
  }
  to {
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}

/* 🔹 محتوای داخل پنل هنگام اسکرول */
#top-language-panel.scrolled span,
#top-language-panel.scrolled i {
  font-size: 11px !important;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
}

#top-language-panel.scrolled .lang-btn {
  padding: 3px 8px;
  font-size: 11px;
  transform: scale(0.9);
  transition: all 0.3s ease-in-out;
}

/* =========================================================
   🗣️ Language Buttons
========================================================= */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 12px;
  border-radius: 9999px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.lang-btn:hover {
  color: #8f0200;
  background: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 🔹 Ripple Effect */
.lang-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.5s;
  opacity: 0;
}

.lang-btn:active::after {
  width: 200%;
  height: 200%;
  opacity: 0;
}

.active-lang {
  background: #fff !important;
  color: #8f0200 !important;
  border: 1px solid #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.25);
}

/* =========================================================
   🦸 Hero Section
========================================================= */


.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 0; /* حذف پدینگ برای پوشش کامل */
    height: 100vh; /* ارتفاع کامل صفحه */
    display: flex; /* استفاده از flexbox */
    justify-content: center; /* مرکز چین افقی */
    align-items: center; /* مرکز چین عمودی */
}

.hero img {
    position: absolute; /* قرار دادن تصویر در پس‌زمینه */
    top: 0;
    left: 0;
    width: 100%; /* عرض 100% صفحه */
    height: 100%; /* ارتفاع 100% صفحه */
    object-fit: cover; /* برای پوشاندن تمام صفحه */
    filter: brightness(75%); /* برای تیره کردن تصویر */
    z-index: -1; /* لایه تصویر در پس‌زمینه قرار می‌گیرد */
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* برای افزایش وضوح */
    z-index: 1; /* اطمینان از قرار گرفتن روی تصویر */
}

.hero p {
    font-size: 1.5rem;
    margin-top: 15px;
    z-index: 1; /* اطمینان از قرار گرفتن روی تصویر */
}

.hero-btn {
    transition: all 0.3s ease;
    background-color: #4ca1af;
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1; /* اطمینان از قرار گرفتن روی تصویر */
}

.hero-btn:hover {
    transform: scale(1.05);
    background-color: #2c3e50;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}



/* =========================================================
   💠 Feature Cards
========================================================= */
.feature-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   ✨ Animations & Toasts
========================================================= */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.tw-animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.tw-animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.tw-animate-fadeInDown {
  animation: fadeInDown 0.4s ease forwards;
}
