@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-primary: #d32f2f;
  --bs-primary-rgb: 211, 47, 47;
  --ks-red: #d32f2f;
  --ks-red-dark: #b71c1c;
  --ks-dark-bg: #4b5563;
  --ks-dark-card: #1f2937;
  --bs-body-font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #0f172a;
}

body {
  font-family: var(--bs-body-font-family);
  direction: rtl;
  color: #0f172a;
}

body.home-page-body {
  background: linear-gradient(180deg, #525660 0%, #42454c 45%, #2b2d32 100%) fixed;
}

body.dashboard-body {
  background-color: #f8fafc !important;
}

/* Custom Hero and Dark Section Styling */
.hero-dark {
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Floating Integrated Header Capsule matching mockup */
.header-capsule-wrapper {
  position: relative;
  z-index: 1040;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.ks-header-capsule {
  background: linear-gradient(90deg, #151a21 0%, #252e39 35%, #596574 75%, #9fa9b6 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  padding: 10px 24px;
  color: #ffffff;
}

.ks-header-top-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.ks-nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  transition: all 0.2s ease;
  position: relative;
}

.ks-nav-link:hover,
.ks-nav-link.active,
.ks-nav-link.show {
  color: #d32f2f !important;
}

.ks-nav-link:hover::before,
.ks-nav-link.active::before,
.ks-nav-link.show::before {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 12px;
  left: 12px;
  height: 3px;
  background-color: #d32f2f;
  border-radius: 2px;
}

.ks-nav-link.dropdown-toggle::after {
  display: inline-block !important;
  vertical-align: 0.2em;
}

.ks-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.ks-icon-btn:hover {
  color: #ffffff;
}

.hero-visual-container {
  position: relative;
  display: inline-block;
}

.hero-visual-img {
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  display: block;
}

.hero-visual-img:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-visual-reflection {
  position: absolute;
  top: 85%;
  left: 0;
  right: 0;
  height: 90%;
  background-image: url('../images/02_hero_server_visual.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  transform: scaleY(-0.9);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  border-radius: 6px;
  background-color: var(--ks-red);
}

/* Trust Badges Dark Bar */
.trust-bar-card {
  background: rgba(17, 30, 56, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Card Image Heights */
.category-img {
  height: 110px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .category-img {
  transform: scale(1.06);
}

.product-img {
  height: 130px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .product-img {
  transform: scale(1.06);
}

.feature-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Custom interactive hover transitions */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.4) !important;
  box-shadow: 0 12px 24px rgba(211, 47, 47, 0.08) !important;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-special {
  background-color: #d32f2f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35em 0.7em;
  border-radius: 6px;
}

.badge-new {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35em 0.7em;
  border-radius: 6px;
}

/* Metallic gray card style matching exact #939499 mockup color */
.ks-card-metallic {
  background-color: #939499 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: #0f172a;
}

.ks-card-metallic:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.7) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

.old-price {
  text-decoration: line-through;
  color: #475569;
  font-size: 0.75rem;
}

.brand-pill {
  background-color: #9da0a5 !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  height: 52px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #0f172a;
  text-decoration: none;
}

.brand-pill:hover {
  background-color: #b5b8bd !important;
  border-color: #d32f2f !important;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.25);
  transform: translateY(-2px);
}

.brand-logo-img {
  max-height: 28px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.brand-logo-hpe { max-height: 32px; }
.brand-logo-dell { max-height: 22px; }
.brand-logo-supermicro { max-height: 30px; }
.brand-logo-cisco { max-height: 28px; }
.brand-logo-lenovo { max-height: 18px; }
.brand-logo-intel { max-height: 22px; }
.brand-logo-samsung { max-height: 15px; }
.brand-logo-micron { max-height: 22px; }

/* Swiper Custom Navigation Buttons */
.swiper-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.swiper-nav-btn:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
  transform: scale(1.08);
}
.swiper-nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: pointer;
}

/* Footer Link Hover Animations */
.footer-link {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(-4px);
}
