/* ===== BMGS Static Site Styles ===== */
:root {
  --blue-900: #0c1e44;
  --blue-700: #1e3a8a;
  --blue-500: #2563eb;
  --blue-mountain: #1e5ba8;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --yellow: #fbbf24;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', Tahoma, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Top Bar ===== */
.topbar {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-mountain));
  color: #cbd5e1;
  font-size: 13px;
  padding: 10px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--white); transition: color 0.2s; }
.topbar a:hover { color: var(--yellow); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info i, .topbar-loc i { color: var(--yellow); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-social { display: inline-flex; align-items: center; gap: 12px; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.topbar-social a:hover { background: var(--yellow); color: var(--blue-900); transform: translateY(-1px); }

/* ===== Header / Nav ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(12, 30, 68, 0.08);
  border-bottom: 3px solid var(--yellow);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; color: var(--blue-900); letter-spacing: 0.5px; font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--muted); }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-weight: 600;
  color: var(--blue-900);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
  font-size: 15px;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }

.cta-btn {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5); }

.menu-toggle { display: none; background: transparent; border: 0; font-size: 28px; color: var(--blue-900); cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--white); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 158, 11, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-900); }
.btn-dark { background: var(--blue-900); color: var(--white); }
.btn-dark:hover { background: var(--blue-700); transform: translateY(-2px); }

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 600px;
  min-height: 480px;
  max-height: 80vh;
  overflow: hidden;
  background: var(--blue-900);
}
.hero-slider > .slide { display: none; }
.hero-slider > .slide.active {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: slideFade 0.9s ease-in-out;
}
@keyframes slideFade {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-slider .slide::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(110deg, rgba(12,30,68,0.92) 0%, rgba(12,30,68,0.78) 45%, rgba(30,91,168,0.55) 100%);
  z-index: 1;
}
.hero-slider .slide::after {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}
[dir="rtl"] .hero-slider .slide::after { right: auto; left: -150px; }
.hero-slider .container { position: relative; z-index: 2; }
.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: 60px 0;
}
.hero-content .eyebrow {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-content h1 span { color: var(--yellow); }
.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 54px; height: 54px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-50%) scale(1.05); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }
[dir="rtl"] .slider-arrow.prev { left: auto; right: 30px; }
[dir="rtl"] .slider-arrow.next { right: auto; left: 30px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.slider-dots .dot:hover { background: rgba(255,255,255,0.7); }
.slider-dots .dot.active { background: var(--orange); width: 32px; border-radius: 6px; }

@media (max-width: 768px) {
  .hero-slider { height: 580px; }
  .slider-arrow { width: 42px; height: 42px; font-size: 14px; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
}

/* ===== Page Banner ===== */
.page-banner {
  background:
    linear-gradient(135deg, rgba(12, 30, 68, 0.92), rgba(30, 58, 138, 0.78)),
    url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1600&q=80') center/cover;
  color: var(--white);
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
[dir="rtl"] .page-banner::before { right: auto; left: -120px; }
.page-banner h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
  font-weight: 800;
}
.page-banner .crumbs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}
.page-banner .crumbs a:hover { color: var(--yellow); }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--blue-900);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== Stats Bar ===== */
.stats {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-mountain));
  color: var(--white);
  padding: 60px 0;
  border-bottom: 4px solid var(--yellow);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 48px; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: 6px; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; }

/* ===== Cards Grid (Services) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-mountain));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--blue-900); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--blue-700); font-weight: 600; font-size: 14px; }
.card .more:hover { color: var(--orange); }

/* ===== About Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  background: var(--orange);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
}
.split-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--blue-900);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}
.split-text > p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }
.feature-list { list-style: none; margin: 22px 0; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--slate);
}
.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ===== Project Grid ===== */
.alt-bg { background: var(--light); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: all 0.3s;
  display: block;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-mountain));
}
.project-img::before {
  content: '\f6fc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.45);
  z-index: 0;
}
.project-img img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover .project-img img { transform: scale(1.08); }
.project-body { padding: 22px; }
.project-tag {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.project-body h3 { color: var(--blue-900); font-size: 18px; margin: 6px 0 8px; font-weight: 700; }
.project-body p { color: var(--muted); font-size: 14px; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 40px;
}
.pagination .pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a.pg-link:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--white);
}
.pagination .pg-current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  cursor: default;
}
.pagination .pg-disabled {
  color: var(--muted);
  background: var(--light);
  cursor: not-allowed;
  opacity: 0.6;
}
.pagination .pg-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
[dir="rtl"] .pagination .pg-prev,
[dir="rtl"] .pagination .pg-next { direction: rtl; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: block;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light), #e2e8f0);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 22px; }
.product-body h3 { color: var(--blue-900); font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.product-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.product-meta strong { color: var(--orange); font-size: 16px; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-mountain));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--yellow);
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  opacity: 0.3;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; font-weight: 800; position: relative; z-index: 2; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 540px; margin-inline: auto; position: relative; z-index: 2; }
.cta-banner .btn { position: relative; z-index: 2; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-mountain));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border-top: 4px solid var(--yellow);
}
.contact-info h3 { font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.contact-info > p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-list .ic {
  width: 42px; height: 42px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-list strong { display: block; font-size: 13px; opacity: 0.7; margin-bottom: 2px; font-weight: 500; }
.contact-list span { color: var(--white); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { color: var(--blue-900); margin-bottom: 6px; font-weight: 800; }
.contact-form > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--slate); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--light);
  transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--blue-700);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-mountain));
  color: #cbd5e1;
  padding: 70px 0 0;
  border-top: 4px solid var(--yellow);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--yellow), transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; font-weight: 700; letter-spacing: 0.5px; }
.footer p { font-size: 14px; line-height: 1.7; color: #cbd5e1; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.footer ul a { transition: color 0.2s; color: #cbd5e1; }
.footer ul a:hover { color: var(--yellow); }
.footer-links li i { color: var(--yellow); font-size: 10px; margin-top: 6px; flex-shrink: 0; }
.footer-contact li i { color: var(--yellow); font-size: 13px; margin-top: 4px; flex-shrink: 0; }
.footer .brand img { height: 60px; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
  color: var(--white);
}
.socials a:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }
.copyright {
  background: #081634;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}
.copyright strong { color: var(--yellow); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .projects-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-btn { display: none; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .stats-grid, .cards, .projects-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .topbar { font-size: 11px; padding: 8px 0; }
  .topbar-info { gap: 14px; }
  .topbar-right { gap: 10px; }
  .topbar-social a { width: 22px; height: 22px; font-size: 10px; }
}

/* ---- Phone refinements: tighten heavy paddings and oversized hero/banner ---- */
@media (max-width: 768px) {
  .page-banner { padding: 70px 0 56px; }
  .contact-info, .contact-form { padding: 26px; }
  .cta-banner { padding: 44px 22px; }
  .hero-slider { height: 520px; min-height: 420px; }
  .hero-content { padding: 40px 0; }
  .hero-content p { font-size: 16px; }
  .stats { padding: 44px 0; }
  .stat-num { font-size: 38px; }
  .split, .contact-grid { gap: 24px; }
  iframe[src*="map"], iframe[src*="openstreetmap"], iframe[src*="google.com/maps"] { height: 320px; }
}

/* ---- Small phones (<= 480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav { padding: 12px 0; gap: 12px; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: 16px; }
  .lang-toggle { padding: 5px 10px; font-size: 12px; }
  .menu-toggle { font-size: 24px; }
  .page-banner { padding: 56px 0 44px; }
  .page-banner .crumbs { font-size: 12px; padding: 5px 12px; }
  .contact-info, .contact-form { padding: 22px; border-radius: 14px; }
  .cta-banner { padding: 36px 18px; border-radius: 14px; }
  .hero-actions .btn { width: 100%; }
  .pagination { gap: 4px; margin-top: 28px; }
  .pagination .pg-link { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; }
  .pagination .pg-label { display: none; }
  .pagination .pg-prev, .pagination .pg-next { font-size: 16px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* ===== Scroll reveal (applied via JS) ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
[dir="rtl"] .reveal-left { transform: translateX(32px); }
[dir="rtl"] .reveal-right { transform: translateX(-32px); }
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Disable for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Hero content slide-in (per slide) ===== */
@keyframes heroContentIn {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-slider .slide.active .eyebrow,
.hero-slider .slide.active h1,
.hero-slider .slide.active p,
.hero-slider .slide.active .hero-actions {
  animation: heroContentIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-slider .slide.active .eyebrow      { animation-delay: 0.2s; }
.hero-slider .slide.active h1            { animation-delay: 0.4s; }
.hero-slider .slide.active p             { animation-delay: 0.6s; }
.hero-slider .slide.active .hero-actions { animation-delay: 0.8s; }

/* ===== Floating sun-glow on hero ===== */
@keyframes floatSun {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -16px) scale(1.05); }
}
.hero-slider .slide.active::after {
  animation: floatSun 8s ease-in-out infinite;
}

/* ===== Page banner reveal on load ===== */
@keyframes bannerDrop {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.page-banner h1 { animation: bannerDrop 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both; }
.page-banner .crumbs { animation: bannerDrop 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both; }

/* ===== Pulsing CTA button (header Get a Quote) ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4); }
  50%      { box-shadow: 0 6px 22px rgba(245, 158, 11, 0.7), 0 0 0 8px rgba(245, 158, 11, 0.08); }
}
.cta-btn { animation: pulseGlow 2.8s ease-in-out infinite; }
.cta-btn:hover { animation: none; }

/* ===== Animated nav underline ===== */
.nav-links a {
  position: relative;
}
.nav-links a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.35s ease, left 0.35s ease;
  border-radius: 2px;
}
.nav-links a:hover::before {
  width: 100%;
  left: 0;
}
/* keep .active underline as the persistent indicator */
.nav-links a.active::before { display: none; }

/* ===== Logo hover bounce ===== */
.brand img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}

/* ===== Card icon rotate on hover ===== */
.card .icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

/* ===== Project / product hover refinements ===== */
.project h3, .product h3 { transition: color 0.25s; }
.project:hover h3, .product:hover h3 { color: var(--orange); }

.project::after,
.product::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: 0 0 0 0 var(--orange);
  transition: box-shadow 0.4s ease;
}
.project:hover::after,
.product:hover::after {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.project, .product { position: relative; }

/* ===== Project tag pulse ===== */
@keyframes tagShine {
  0%, 100% { background-position: -200% 0; }
  50%      { background-position: 200% 0; }
}
.project:hover .project-tag {
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tagShine 2s linear infinite;
}

/* ===== Footer social hover lift ===== */
.socials a {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.socials a:hover {
  transform: translateY(-5px) rotate(-8deg);
}

/* ===== Slider arrow hover pulse ===== */
@keyframes arrowPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.1); }
}
.slider-arrow:hover { animation: arrowPulse 1.2s ease-in-out infinite; }

/* ===== Form field focus glow ===== */
.form-group input,
.form-group textarea,
.form-group select {
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

/* ===== Stat number pop on reveal ===== */
@keyframes statPop {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}
.stat-num.is-visible {
  animation: statPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Section head divider (decorative) ===== */
.section-head h2 {
  position: relative;
  padding-bottom: 18px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 3px;
  transform-origin: center;
  transition: transform 0.6s ease 0.2s;
}
.section-head.is-visible h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== Feature list checkmark wiggle ===== */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-12deg); }
  75%      { transform: rotate(12deg); }
}
.feature-list li:hover::before {
  animation: wiggle 0.5s ease-in-out;
}

/* ===== CTA banner gradient shift ===== */
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cta-banner {
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}

/* ===== Button shine effect ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s ease;
}
.btn-primary:hover::after {
  left: 100%;
}

/* ===== Topbar fade-in on load ===== */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.topbar {
  animation: slideDown 0.6s ease-out;
}

/* ===== Scroll-to-top button (added by JS) ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  font-size: 18px;
}
[dir="rtl"] .scroll-top { right: auto; left: 30px; }
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.55);
}

/* ============================================================
   MODAL — beautiful contact-form success popup
   ============================================================ */
.bmgs-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(12, 30, 68, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  overflow: hidden;
}
.bmgs-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* The card */
.bmgs-modal-card {
  background: #fff;
  border-radius: 28px;
  max-width: 480px;
  width: 100%;
  padding: 60px 40px 36px;
  text-align: center;
  position: relative;
  box-shadow:
    0 40px 80px -20px rgba(12, 30, 68, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 60px 120px rgba(245, 158, 11, 0.15);
  transform: scale(0.7) translateY(60px) rotate(-2deg);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  overflow: visible;
}
.bmgs-modal.is-open .bmgs-modal-card {
  transform: scale(1) translateY(0) rotate(0);
  opacity: 1;
}
.bmgs-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 50%, var(--yellow) 100%);
  background-size: 200% 100%;
  border-radius: 28px 28px 0 0;
  animation: bmgsBarShine 3s linear infinite;
}
@keyframes bmgsBarShine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.bmgs-modal-card.error::before {
  background: linear-gradient(90deg, #f87171 0%, #dc2626 50%, #f87171 100%);
  background-size: 200% 100%;
}
.bmgs-modal-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background: linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.12) 50%, transparent 100%);
  z-index: -1;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}
.bmgs-modal.is-open .bmgs-modal-card::after { opacity: 1; }

/* Close button */
.bmgs-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border: 0;
  background: var(--light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 5;
}
[dir="rtl"] .bmgs-modal-close { right: auto; left: 18px; }
.bmgs-modal-close:hover {
  background: var(--blue-900);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

/* Title */
.bmgs-modal h3 {
  font-size: 30px;
  font-weight: 800;
  margin: 28px 0 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bmgsTitleIn 0.6s ease-out 0.5s both;
}
.bmgs-modal-card.error h3 {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes bmgsTitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bmgs-modal p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  animation: bmgsTitleIn 0.6s ease-out 0.7s both;
}
.bmgs-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  animation: bmgsTitleIn 0.6s ease-out 0.9s both;
}
.bmgs-modal .btn {
  min-width: 160px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.bmgs-modal .btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: bmgsBtnShine 2.5s ease-in-out 1.5s infinite;
}
@keyframes bmgsBtnShine {
  0%, 30% { left: -50%; }
  60%, 100% { left: 150%; }
}

/* "Saved to dashboard" footer note */
.bmgs-modal-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: bmgsTitleIn 0.6s ease-out 1.1s both;
}
.bmgs-modal-foot i { color: #10b981; font-size: 11px; }

/* ===== Success icon — rich layered animation ===== */
.bmgs-success-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
}

/* Outer glow */
.bmgs-success-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 70%);
  filter: blur(15px);
  animation: bmgsGlowPulse 2.5s ease-in-out 0.5s infinite;
}
@keyframes bmgsGlowPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* Three pulsing rings */
.bmgs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: bmgsRingExpand 2s ease-out 1.2s infinite;
  pointer-events: none;
}
.bmgs-ring:nth-child(2) { animation-delay: 1.6s; }
.bmgs-ring:nth-child(3) { animation-delay: 2.0s; }
@keyframes bmgsRingExpand {
  0%   { transform: scale(0.85); opacity: 1; border-width: 3px; }
  100% { transform: scale(1.7);  opacity: 0; border-width: 1px; }
}

/* The animated SVG checkmark */
.bmgs-check {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow:
    inset 0 0 0 #10b981,
    0 12px 30px rgba(16, 185, 129, 0.35);
  animation:
    bmgsCheckFill 0.6s ease-in-out 0.4s forwards,
    bmgsCheckScale 0.4s ease-out 1.0s both;
  z-index: 2;
}
.bmgs-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: bmgsCheckStroke 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.bmgs-check-mark {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bmgsCheckStroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.9s forwards;
}
@keyframes bmgsCheckStroke { to { stroke-dashoffset: 0; } }
@keyframes bmgsCheckScale  {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes bmgsCheckFill { to { box-shadow: inset 0 0 0 60px #10b981, 0 12px 30px rgba(16, 185, 129, 0.45); } }

/* Sparkle stars around success icon */
.bmgs-sparkle {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.bmgs-sparkle::before, .bmgs-sparkle::after {
  content: '';
  position: absolute;
  background: var(--yellow);
  border-radius: 2px;
}
.bmgs-sparkle::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.bmgs-sparkle::after  { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.bmgs-sparkle:nth-child(4) { top: -10px;  left: -8px;  animation: bmgsSparkle 2s ease-out 1.4s infinite; }
.bmgs-sparkle:nth-child(5) { top: -15px;  right: 15px; animation: bmgsSparkle 2s ease-out 1.6s infinite; --c: var(--orange); }
.bmgs-sparkle:nth-child(6) { bottom: 0;   right: -10px;animation: bmgsSparkle 2s ease-out 1.8s infinite; }
.bmgs-sparkle:nth-child(7) { bottom: -8px;left: 20px;  animation: bmgsSparkle 2s ease-out 2.0s infinite; --c: var(--orange); }
.bmgs-sparkle:nth-child(5)::before, .bmgs-sparkle:nth-child(5)::after,
.bmgs-sparkle:nth-child(7)::before, .bmgs-sparkle:nth-child(7)::after { background: var(--orange); }
@keyframes bmgsSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Error icon */
.bmgs-modal-error-icon {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  box-shadow:
    0 16px 40px rgba(220, 38, 38, 0.45),
    inset 0 -4px 12px rgba(0, 0, 0, 0.15);
  animation: bmgsErrorIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.bmgs-modal-error-icon::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.4), transparent 70%);
  filter: blur(15px);
  z-index: -1;
}
@keyframes bmgsErrorIn {
  0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ===== Confetti — 12 particles, 5 colors, varied sizes ===== */
.bmgs-confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.bmgs-confetti {
  position: absolute;
  top: 38%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}
.bmgs-modal.is-open .bmgs-confetti { animation: bmgsConfetti 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
.bmgs-confetti:nth-child(1)  { background: #fbbf24; --tx: -160px; --ty: -120px; --r:  120deg; }
.bmgs-confetti:nth-child(2)  { background: #f59e0b; --tx:  150px; --ty: -130px; --r: -160deg; animation-delay: 0.65s !important; width: 8px; height: 14px; }
.bmgs-confetti:nth-child(3)  { background: #10b981; --tx:  -80px; --ty: -180px; --r:   90deg; animation-delay: 0.70s !important; }
.bmgs-confetti:nth-child(4)  { background: #2563eb; --tx:   80px; --ty: -160px; --r:  -90deg; animation-delay: 0.75s !important; width: 12px; height: 8px; border-radius: 50%; }
.bmgs-confetti:nth-child(5)  { background: #ec4899; --tx: -200px; --ty:  -80px; --r:  200deg; animation-delay: 0.80s !important; }
.bmgs-confetti:nth-child(6)  { background: #fbbf24; --tx:  200px; --ty:  -90px; --r: -180deg; animation-delay: 0.85s !important; width: 14px; height: 6px; }
.bmgs-confetti:nth-child(7)  { background: #10b981; --tx:  -50px; --ty: -200px; --r:  140deg; animation-delay: 0.90s !important; border-radius: 50%; }
.bmgs-confetti:nth-child(8)  { background: #f59e0b; --tx:   50px; --ty: -210px; --r: -110deg; animation-delay: 0.95s !important; width: 7px; height: 7px; border-radius: 50%; }
.bmgs-confetti:nth-child(9)  { background: #2563eb; --tx: -120px; --ty: -160px; --r:  170deg; animation-delay: 1.0s  !important; width: 8px; height: 12px; }
.bmgs-confetti:nth-child(10) { background: #ec4899; --tx:  120px; --ty: -170px; --r: -140deg; animation-delay: 1.05s !important; }
.bmgs-confetti:nth-child(11) { background: #fbbf24; --tx:  -30px; --ty: -220px; --r:  220deg; animation-delay: 1.10s !important; width: 6px; height: 6px; border-radius: 50%; }
.bmgs-confetti:nth-child(12) { background: #10b981; --tx:   30px; --ty: -230px; --r: -200deg; animation-delay: 1.15s !important; width: 10px; height: 6px; }
@keyframes bmgsConfetti {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0); opacity: 0; }
  15%  { transform: translate(calc(-50% + var(--tx) * 0.3), calc(-50% + var(--ty) * 0.3)) scale(1) rotate(calc(var(--r) * 0.3)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) * 1.4 + 100px)) scale(0.5) rotate(var(--r)); opacity: 0; }
}

/* Submit-button "sending" state */
.btn[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .bmgs-modal-card,
  .bmgs-check, .bmgs-check-circle, .bmgs-check-mark,
  .bmgs-modal-error-icon, .bmgs-confetti, .bmgs-sparkle, .bmgs-ring,
  .bmgs-modal h3, .bmgs-modal p, .bmgs-modal-actions, .bmgs-modal-foot {
    animation: none !important;
    transition: opacity 0.2s ease !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
