/* ============================================================
   Dadeh Gostaran Tose'e Ertebatat Hooshmand (dgteh.ir)
   Custom styles - on top of Bootstrap 5 RTL
   ============================================================ */

:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --accent: #06b6d4;
  --violet: #7c3aed;

  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-brand: 0 22px 55px -20px rgba(79, 70, 229, .45);

  --gradient: linear-gradient(135deg, var(--violet) 0%, var(--brand) 45%, var(--accent) 100%);
  --header-h: 74px;

  /* Bootstrap overrides */
  --bs-body-font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --bs-body-color: var(--body);
  --bs-body-bg: var(--bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  font-family: var(--bs-body-font-family);
  color: var(--body);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; line-height: 1.45; }
p { margin-bottom: 0; }
a { text-decoration: none; }
section { scroll-margin-top: var(--header-h); }

/* ---------- Brand mark & buttons ---------- */
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-size: 20px; box-shadow: var(--shadow); flex-shrink: 0;
}
.brand-logo { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow); flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text b { color: var(--ink); font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 11.5px; }

.btn-brand {
  background: var(--gradient); color: #fff; border: none; font-weight: 700; border-radius: 999px;
  padding: 10px 24px; box-shadow: var(--shadow-brand); transition: transform .2s ease, box-shadow .2s ease, color .2s;
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(79, 70, 229, .55); }
.btn-outline-brand {
  background: transparent; color: var(--brand); border: 1.5px solid var(--line); font-weight: 700;
  border-radius: 999px; padding: 10px 24px; transition: transform .2s ease, border-color .2s, color .2s, background .2s;
}
.btn-outline-brand:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-700); background: #eef2ff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1030; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .93); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .navbar { width: 100%; padding: 0; }
.site-header .nav-link { color: var(--body); font-weight: 600; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.site-header .nav-link:hover { color: var(--brand); background: var(--bg-alt); }
.navbar-toggler { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 20px; color: var(--ink); line-height: 1; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: calc(var(--header-h) + 64px) 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.blob-1 { width: 460px; height: 460px; background: #c7d2fe; inset-block-start: -130px; inset-inline-end: -110px; opacity: .55; }
.blob-2 { width: 380px; height: 380px; background: #a5f3fc; inset-block-start: 110px; inset-inline-start: -130px; opacity: .45; }
.blob-3 { width: 320px; height: 320px; background: #ddd6fe; inset-block-end: -80px; inset-inline-start: 42%; opacity: .4; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 30%, #000 20%, transparent 76%);
          mask-image: radial-gradient(ellipse 80% 62% at 50% 30%, #000 20%, transparent 76%);
}

.hero-inner { max-width: 820px; }
.badge-pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--brand-700); background: #eef2ff; border: 1px solid #e0e7ff; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2rem, 5.2vw, 3.55rem); letter-spacing: -.5px; margin-bottom: 20px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--body); max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  margin-top: 56px; padding: 24px; background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.stat b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; color: var(--ink); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 86px; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .5px; margin-bottom: 12px; }
.eyebrow-light { color: #c7d2fe; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
.section-head p { margin-top: 14px; color: var(--body); font-size: 1.04rem; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: inline-end; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.service-card:hover::before { transform: scaleX(1); transform-origin: inline-start; }
.service-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: #eef2ff; color: var(--brand); font-size: 26px; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--body); font-size: 15px; }

/* ---------- Why us ---------- */
.feature-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 13px; flex-shrink: 0; }

.why-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.glass-card { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-brand); padding: 20px; transform: rotate(-2deg); }
.browser-bar { display: flex; gap: 7px; margin-bottom: 20px; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-bar span:nth-child(1) { background: #fca5a5; }
.browser-bar span:nth-child(2) { background: #fcd34d; }
.browser-bar span:nth-child(3) { background: #86efac; }
.code-line { height: 11px; border-radius: 6px; background: var(--bg-alt); margin-bottom: 12px; }
.code-line.w-90 { width: 90%; background: linear-gradient(90deg, #c7d2fe, #a5f3fc); }
.code-line.w-80 { width: 80%; }
.code-line.w-70 { width: 70%; }
.code-line.w-60 { width: 60%; }
.code-line.w-40 { width: 40%; }
.code-block { height: 70px; border-radius: 10px; background: #eef2ff; margin: 16px 0; }

.floating-pill {
  position: absolute; background: #fff; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); animation: float 4s ease-in-out infinite;
}
.floating-pill i { color: var(--brand); }
.pill-1 { inset-block-start: 6%; inset-inline-start: -2%; }
.pill-2 { inset-block-end: 14%; inset-inline-start: -6%; animation-delay: 1.2s; }
.pill-3 { inset-block-start: 44%; inset-inline-end: -4%; animation-delay: 2.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Process / steps ---------- */
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: var(--shadow); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--body); }

/* ---------- Contact ---------- */
.contact-card { background: var(--gradient); border-radius: 28px; padding: clamp(28px, 5vw, 54px); box-shadow: var(--shadow-brand); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; inset-block-start: -50%; inset-inline-end: -8%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.contact-card > .row { position: relative; z-index: 1; }
.text-white-75 { color: rgba(255, 255, 255, .9); }
.contact-item {
  display: flex; align-items: center; gap: 15px; height: 100%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px;
  padding: 15px 18px; backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.contact-item:hover { background: rgba(255, 255, 255, .24); transform: translateY(-3px); }
.contact-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 22px; flex-shrink: 0; }
.contact-meta { display: flex; flex-direction: column; line-height: 1.5; }
.contact-meta small { color: rgba(255, 255, 255, .8); font-size: 13px; }
.contact-meta b { color: #fff; font-size: 17px; letter-spacing: .5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 54px 26px; margin-top: 86px; }
.site-footer .brand-text b, .site-footer b { color: #fff; }
.text-muted-light { color: #94a3b8; }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cbd5e1; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255, 255, 255, .1); margin-block: 30px 20px; }

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 1040;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-size: 22px; box-shadow: var(--shadow-brand);
  transition: transform .2s;
}
.fab-call:hover { color: #fff; transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  /* Mobile menu = dropdown panel anchored below the fixed header bar,
     positioned absolute so it never grows/centers the header itself. */
  .site-header .navbar-collapse {
    position: absolute;
    inset-block-start: calc(var(--header-h) - 6px);
    inset-inline: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h) - 20px);
    overflow-y: auto;
  }
  .site-header .navbar-nav { gap: 2px; width: 100%; }
  .site-header .nav-link { padding: 12px 14px; }
  .site-header .nav-item.ms-lg-2 { margin-top: 6px; }
  .site-header .btn-brand { display: block; width: 100%; text-align: center; }
  .why-visual { min-height: 300px; margin-top: 8px; }
}

@media (max-width: 575.98px) {
  .section { padding-block: 60px; }
  .hero { padding-block: calc(var(--header-h) + 36px) 56px; }
  .contact-item { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
