:root {
  --bg-color: #0f0a0a;
  --card-bg: #1a1111;
  --primary-orange: #ff5722;
  --gradient-orange: linear-gradient(135deg, #ff7043, #f4511e);
  --text-light: #f5f5f5;
  --text-muted: #b0bec5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.8;
}

/* --- هدر شیک و شیشه‌ای منطبق بر صفحه اصلی با افکت هاور پویا --- */
header {
  position: fixed;
  top: 20px;
  left: 5%;
  right: 5%;
  z-index: 1000;
  background: rgba(22, 14, 14, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 87, 34, 0.1);
  border-radius: 50px;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);

  /* افکت انیمیشن برای هاور */
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* افکت جذاب هنگام هاور (آمدن به سمت بالا و پررنگ‌تر شدن بک‌گراند) */
header:hover {
  transform: translateY(-5px); /* هدر را کمی به سمت بالا هدایت می‌کند */
  background: rgba(
    26,
    17,
    17,
    0.85
  ); /* بک‌گراند شیشه‌ای را تیره‌تر و پررنگ‌تر می‌کند */
  border-color: rgba(255, 87, 34, 0.3); /* درخشش مرز هدر بیشتر می‌شود */
  box-shadow:
    0 15px 45px rgba(255, 87, 34, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.8); /* سایه عمیق‌تر و گداخته‌تر */
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  background-image: url("/assets/img/Logo.png"); /* آدرس لوگوی شما */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* دکمه پروفایل من جایگزین سبد خرید */
.btn-profile {
  background: var(--gradient-orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

/* بخش اصلی محتوا (بنا با فاصله هدر) */
main {
  padding-top: 150px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* بخش معرفی سه‌بعدی برند اثیر */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.intro-text h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(to left, #fff, #ff7043);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 17px;
  text-align: justify;
  margin-bottom: 25px;
}

/* مکعب سه بعدی فرضی انیمیشنی زغال */
.intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 350px;
}

.coal-cube-3d {
  width: 180px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 15s infinite linear;
}

.cube-face {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #2a1b1b 0%, #0d0808 100%);
  border: 2px solid rgba(255, 87, 34, 0.4);
  box-shadow: inset 0 0 30px rgba(255, 87, 34, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-orange);
  font-size: 14px;
}

/* ساختن وجوه مکعب سه بعدی */
.face-front {
  transform: rotateY(0deg) translateZ(90px);
}
.face-back {
  transform: rotateY(180deg) translateZ(90px);
}
.face-left {
  transform: rotateY(-90deg) translateZ(90px);
}
.face-right {
  transform: rotateY(90deg) translateZ(90px);
}
.face-top {
  transform: rotateX(90deg) translateZ(90px);
}
.face-bottom {
  transform: rotateX(-90deg) translateZ(90px);
}

@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* آمار رضایت‌مندی با انیمیشن شمارشی صعودی */
.stats-section {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  margin-bottom: 80px;
  border: 1px solid rgba(255, 87, 34, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.stat-card {
  padding: 10px;
}

.stat-number {
  font-size: 50px;
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 10px;
  display: inline-block;
}

.stat-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* بنر تناژ بالا و سفارش عمده */
.wholesale-banner {
  background: linear-gradient(135deg, #1f1111 0%, #2e1008 100%);
  border: 2px dashed rgba(255, 87, 34, 0.3);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.wholesale-banner h2 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 15px;
}

.wholesale-banner p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 16px;
}

.btn-call {
  background: var(--gradient-orange);
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 18px;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.4);
  transition: 0.3s;
}

.btn-call:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 87, 34, 0.6);
}

/* آدرس و سیستم مسیریابی */
.location-section {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.location-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.address-box {
  background: rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-orange);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 16px;
}

.btn-share-trigger {
  background: #221515;
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-share-trigger:hover {
  background: var(--primary-orange);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
}

.map-static {
  background: radial-gradient(circle, #2c1b1b, #110909);
  border: 1px solid rgba(255, 87, 34, 0.2);
  height: 250px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--text-muted);
  text-align: center;
}

/* پاپ‌آپ مسیریابی (Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--primary-orange);
  border-radius: 25px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.copy-link-wrapper {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 87, 34, 0.1);
}

.copy-link-input {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 8px 12px;
  flex-grow: 1;
  direction: ltr;
  font-size: 13px;
  outline: none;
}

.btn-copy {
  background: var(--primary-orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.app-btn {
  background: rgba(255, 87, 34, 0.05);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: 12px;
  padding: 15px;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  font-weight: bold;
  font-size: 14px;
}

.app-btn:hover {
  background: var(--gradient-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* --- واکنش‌گرایی پیشرفته هدر بر اساس عکس‌های ارسالی شما (Responsive) --- */
@media (max-width: 900px) {
  header {
    top: 15px;
    left: 4%;
    right: 4%;
    padding: 12px 24px;
    border-radius: 30px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }

  .header-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 87, 34, 0.1);
    padding-top: 10px;
    margin-top: 5px;
  }

  nav ul {
    display: flex;
    gap: 20px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .btn-profile {
    padding: 8px 16px;
    font-size: 13px;
  }

  main {
    padding-top: 180px; /* افزایش فضا برای حالت موبایل دوردیفه هدر */
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .intro-text h1 {
    font-size: 28px;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .location-section {
    grid-template-columns: 1fr;
  }
}

/* --- استایل سفارشی اسکرول‌بار (Scrollbar) منطبق بر تصویر --- */

/* برای مرورگرهای Chrome, Safari و Edge */
::-webkit-scrollbar {
  width: 8px; /* عرض اسکرول‌بار */
}

/* پس‌زمینه ریل اسکرول‌بار (تیره همگام با رنگ بدنه سایت) */
::-webkit-scrollbar-track {
  background: #0f0a0a;
}

/* بخش متحرک اسکرول‌بار (رنگ نارنجی گداخته اثیر) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7043, #f4511e);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.5); /* ایجاد افکت درخشندگی ملایم */
}

/* تغییر رنگ در حالت هاور روی اسکرول‌بار */
::-webkit-scrollbar-thumb:hover {
  background: #ff5722;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.8);
}

/* پشتیبانی از مرورگر Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #f4511e #0f0a0a;
}
