/* ============================================================
   BIOTOO DESIGN SYSTEM — Core
   Version: 1.0.0
   Style: Premium / Glassmorphism / Modern 2026
   ============================================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {

  /* ========================================
     Biotoo Brand Colors
     Based on Biotoo Logo
     ======================================== */

  /* Primary - Electric Blue */
  --bt-primary: #2563FF;
  --bt-primary-light: #3B82FF;
  --bt-primary-dark: #1746D2;

  --bt-primary-50: #EEF4FF;
  --bt-primary-100: #DCE7FF;
  --bt-primary-200: #B9CEFF;


  /* Secondary - Purple */
  --bt-secondary: #7C3AED;
  --bt-secondary-light: #9333EA;
  --bt-secondary-dark: #5B21B6;


  /* Accent - Magenta / Pink */
  --bt-accent: #E52BC2;
  --bt-accent-light: #F03BD0;
  --bt-accent-dark: #B91C9B;


  /* ========================================
     Neutrals
     ======================================== */

  --bt-bg: #F8FAFF;

  /* Logo Dark Navy */
  --bt-dark: #152852;
  --bt-dark-2: #1C3263;
  --bt-dark-3: #2A4070;

  --bt-text: #263A63;
  --bt-text-light: #64748B;
  --bt-text-lighter: #94A3B8;

  --bt-border: #E2E8F5;

  --bt-white: #FFFFFF;


  /* ========================================
     Status
     ======================================== */

  --bt-success: #22C55E;
  --bt-warning: #F59E0B;
  --bt-danger: #EF4444;


  /* ========================================
     Gradients
     ======================================== */

  /* اصلی‌ترین Gradient برند */
  --bt-gradient-primary:
    linear-gradient(
      135deg,
      #2563FF 0%,
      #4F46E5 45%,
      #B12CE8 75%,
      #E52BC2 100%
    );


  /* Gradient مشابه بخش رنگی لوگو */
  --bt-gradient-brand:
    linear-gradient(
      135deg,
      #168DFF 0%,
      #3155FF 35%,
      #7C3AED 65%,
      #E52BC2 100%
    );


  /* Hero */
  --bt-gradient-hero:
    linear-gradient(
      135deg,
      #152852 0%,
      #1C3263 40%,
      #3155FF 75%,
      #7C3AED 100%
    );


  /* Card */
  --bt-gradient-card:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95) 0%,
      rgba(248,250,255,0.75) 100%
    );


  /* Accent */
  --bt-gradient-accent:
    linear-gradient(
      135deg,
      #7C3AED 0%,
      #C026D3 50%,
      #E52BC2 100%
    );


  /* Warm - اصلاح شده برای هماهنگی برند */
  --bt-gradient-warm:
    linear-gradient(
      135deg,
      #F973B7 0%,
      #E52BC2 50%,
      #9333EA 100%
    );


  /* Mesh Background */
  --bt-gradient-mesh:
    radial-gradient(
      at 40% 20%,
      rgba(37,99,255,0.14) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 80% 0%,
      rgba(124,58,237,0.12) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 0% 50%,
      rgba(229,43,194,0.10) 0px,
      transparent 50%
    );


  /* ========================================
     Shadows
     ======================================== */

  --bt-shadow-sm:
    0 1px 3px rgba(21,40,82,0.06),
    0 1px 2px rgba(21,40,82,0.04);


  --bt-shadow-md:
    0 4px 6px -1px rgba(21,40,82,0.07),
    0 2px 4px -2px rgba(21,40,82,0.05);


  --bt-shadow-lg:
    0 10px 25px -3px rgba(21,40,82,0.08),
    0 4px 6px -4px rgba(21,40,82,0.04);


  --bt-shadow-xl:
    0 20px 50px -12px rgba(21,40,82,0.15);


  --bt-shadow-2xl:
    0 25px 60px -15px rgba(21,40,82,0.20);


  /* Brand Shadows */

  --bt-shadow-primary:
    0 10px 30px -10px rgba(37,99,255,0.40);


  --bt-shadow-secondary:
    0 10px 30px -10px rgba(124,58,237,0.40);


  --bt-shadow-accent:
    0 10px 30px -10px rgba(229,43,194,0.35);


  --bt-shadow-brand:
    0 12px 35px -10px rgba(124,58,237,0.35);


  --bt-shadow-glass:
    0 8px 32px rgba(21,40,82,0.08);


  /* ========================================
     Border Radius
     ======================================== */

  --bt-radius-sm: 8px;
  --bt-radius-md: 12px;
  --bt-radius-lg: 16px;
  --bt-radius-xl: 24px;
  --bt-radius-2xl: 32px;
  --bt-radius-full: 9999px;


  /* ========================================
     Spacing
     ======================================== */

  --bt-section-padding: 100px 0;
  --bt-container-max: 1280px;


  /* ========================================
     Transitions
     ======================================== */

  --bt-transition:
    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bt-transition-fast:
    all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --bt-transition-slow:
    all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --bt-transition-bounce:
    all 0.4s cubic-bezier(
      0.68,
      -0.55,
      0.265,
      1.55
    );


  /* ========================================
     Typography
     ======================================== */

  --bt-font:
    'Vazirmatn',
    'Segoe UI',
    Tahoma,
    sans-serif;


  /* ========================================
     Z-index
     ======================================== */

  --bt-z-dropdown: 1000;
  --bt-z-sticky: 1020;
  --bt-z-fixed: 1030;
  --bt-z-modal: 1050;
  --bt-z-popover: 1070;
  --bt-z-tooltip: 1080;
  --bt-z-preloader: 9999;
}
/* ---------- Dark Mode Variables ---------- */
[data-bs-theme="dark"] {
  --bt-bg: #0F172A;
  --bt-white: #1E293B;
  --bt-text: #E2E8F0;
  --bt-text-light: #94A3B8;
  --bt-border: #334155;
  --bt-dark: #F8FAFC;
  --bt-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --bt-shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --bt-shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
  --bt-shadow-xl: 0 20px 50px rgba(0,0,0,0.5);
  --bt-gradient-card: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(30,41,59,0.6) 100%);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bt-font);
  background-color: var(--bt-bg);
  color: var(--bt-text);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}

::selection {
  background: var(--bt-primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bt-bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bt-primary), var(--bt-secondary));
  border-radius: var(--bt-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bt-primary-dark);
}

a {
  text-decoration: none;
  color: var(--bt-primary);
  transition: var(--bt-transition-fast);
}
a:hover {
  color: var(--bt-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--bt-dark);
}

/* ---------- Bootstrap RTL Overrides ---------- */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 1.5rem;
}

/* ---------- Utility Classes ---------- */
.bt-section {
  padding: var(--bt-section-padding);
  position: relative;
}

.bt-section-sm {
  padding: 60px 0;
}

.bt-container {
  max-width: var(--bt-container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.bt-section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.bt-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bt-primary-50);
  color: var(--bt-primary);
  border-radius: var(--bt-radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--bt-primary-100);
  animation: bt-badge-pulse 3s ease-in-out infinite;
}

@keyframes bt-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.1); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}

.bt-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--bt-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.bt-section-title .gradient-text {
  background: var(--bt-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bt-section-desc {
  font-size: 17px;
  color: var(--bt-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Gradient Text */
.gradient-text {
  background: var(--bt-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: var(--bt-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glassmorphism ---------- */
.bt-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .bt-glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bt-glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Floating Animation ---------- */
@keyframes bt-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes bt-float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes bt-float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(15px); }
}

@keyframes bt-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bt-pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes bt-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bt-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bt-float { animation: bt-float 6s ease-in-out infinite; }
.bt-float-slow { animation: bt-float-slow 8s ease-in-out infinite; }
.bt-float-reverse { animation: bt-float-reverse 7s ease-in-out infinite; }

/* ---------- Preloader ---------- */
.bt-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--bt-z-preloader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.bt-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.bt-preloader-spinner {
  width: 60px;
  height: 60px;
  position: relative;
}

.bt-preloader-spinner::before,
.bt-preloader-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.bt-preloader-spinner::before {
  width: 100%;
  height: 100%;
  background: var(--bt-gradient-primary);
  animation: bt-pulse-ring 1.5s ease-out infinite;
}

.bt-preloader-spinner::after {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  background: var(--bt-gradient-primary);
  animation: bt-float 1.5s ease-in-out infinite;
}

/* ---------- Scroll To Top ---------- */
.bt-scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--bt-radius-md);
  background: var(--bt-gradient-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--bt-transition);
  z-index: var(--bt-z-sticky);
  box-shadow: var(--bt-shadow-primary);
}

.bt-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bt-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(37,99,235,0.5);
}

/* ---------- Background Decorations ---------- */
.bg-mesh {
  background-image: var(--bt-gradient-mesh);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-dots {
  background-image: radial-gradient(rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Blobs */
.bt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.bt-blob-primary {
  background: var(--bt-primary);
}

.bt-blob-secondary {
  background: var(--bt-secondary);
}

.bt-blob-accent {
  background: var(--bt-accent);
}

/* ---------- Text Utilities ---------- */
.text-primary-gradient {
  background: var(--bt-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Spacing Utilities ---------- */
.mt-100 { margin-top: 100px; }
.mb-100 { margin-bottom: 100px; }
.py-120 { padding-top: 120px; padding-bottom: 120px; }

/* ---------- Custom Selection Color ---------- */
::selection {
  background: rgba(37,99,235,0.2);
  color: var(--bt-primary-dark);
}

/* ---------- Focus Styles ---------- */
:focus-visible {
  outline: 2px solid var(--bt-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
  .bt-header,
  .bt-footer,
  .bt-scroll-top {
    display: none !important;
  }
}

.bt-logo-icon{
  width: 75px ;
}