/* =========================================================
   البعد السابع v3 — Brand red primary, rounded UI, motion
   Colors from brand guide: #ff0000 #000000 #3772ff #f4b10b
   ========================================================= */

:root {
	--bs-primary: #ff0000;
	--bs-primary-dark: #d40000;
	--bs-primary-soft: rgba(255, 0, 0, 0.1);
	--bs-primary-glow: rgba(255, 0, 0, 0.45);
	--bs-radius: 16px;
	--bs-radius-lg: 24px;
	--bs-radius-sm: 10px;
	--bs-radius-pill: 999px;
	--bs-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	--bs-shadow-red: 0 16px 48px rgba(255, 0, 0, 0.22);
}

/* ---- Global rounded + red accents ---- */
body.bs-page a:not(.bs-btn):hover {
	color: var(--bs-primary);
}
body.bs-page .bs-btn,
body.bs-page .bs-header,
body.bs-page .bs-hero,
body.bs-page .bs-section,
body.bs-page .bs-footer,
body.bs-page input,
body.bs-page select,
body.bs-page textarea,
body.bs-page button {
	border-radius: var(--bs-radius-sm);
}
body.bs-page .bs-btn {
	border-radius: var(--bs-radius-pill);
}
body.bs-page h1,
body.bs-page h2,
body.bs-page h3 {
	color: var(--bs-black);
}

/* ---- Keyframes ---- */
@keyframes bs-fade-up {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes bs-pulse-ring {
	0% { transform: scale(0.85); opacity: 0.7; }
	100% { transform: scale(1.35); opacity: 0; }
}
@keyframes bs-orbit-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
@keyframes bs-red-sweep {
	0%, 100% { opacity: 0.35; transform: translateX(-30%) skewX(-12deg); }
	50% { opacity: 0.85; transform: translateX(30%) skewX(-12deg); }
}
@keyframes bs-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@keyframes bs-shimmer {
	0% { background-position: 200% center; }
	100% { background-position: -200% center; }
}

/* ---- Header ---- */
.bs-header {
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bs-nav a:hover,
.bs-nav a:focus-visible {
	color: #fff !important;
}
.bs-header__cta .bs-btn-primary {
	background: var(--bs-blue-brand, #3772ff) !important;
	border-color: var(--bs-blue-brand, #3772ff) !important;
	box-shadow: 0 4px 20px rgba(55, 114, 255, 0.35);
	color: #fff !important;
}
.bs-header__cta .bs-btn-primary:hover {
	background: var(--bs-blue-dark, #1e4fd4) !important;
	border-color: var(--bs-blue-dark, #1e4fd4) !important;
	color: #fff !important;
}
.bs-burger {
	border-radius: var(--bs-radius-sm);
}

/* ---- Hero ---- */
.bs-hero {
	background: #000;
	overflow: hidden;
}
.bs-hero::before {
	background:
		radial-gradient(circle at 70% 40%, rgba(255, 0, 0, 0.22), transparent 45%),
		radial-gradient(circle at 20% 80%, rgba(55, 114, 255, 0.08), transparent 40%);
}
.bs-hero::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40%;
	right: 0;
	background: linear-gradient(105deg, transparent, rgba(255, 0, 0, 0.15), transparent);
	animation: bs-red-sweep 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}
.bs-hero__tag {
	color: var(--bs-primary);
}
.bs-hero__title-line--sub {
	color: var(--bs-blue-brand, #3772ff);
}
.bs-hero__strap strong {
	color: var(--bs-primary);
}
.bs-hero__stat b {
	color: var(--bs-primary);
}
.bs-btn-yellow {
	background: var(--bs-primary) !important;
	color: #fff !important;
	border-color: var(--bs-primary) !important;
	box-shadow: var(--bs-shadow-red);
}
.bs-btn-yellow:hover {
	background: var(--bs-primary-dark) !important;
	border-color: var(--bs-primary-dark) !important;
	color: #fff !important;
}
.bs-btn-ghost {
	border-radius: var(--bs-radius-pill);
}
.bs-btn-ghost:hover {
	color: var(--bs-primary) !important;
	border-color: var(--bs-primary);
	background: transparent;
}

/* ---- Section eyebrows ---- */
.bs-section__eyebrow {
	color: var(--bs-primary);
	background: var(--bs-primary-soft);
	padding: 8px 16px;
	border-radius: var(--bs-radius-pill);
}
.bs-section__eyebrow span {
	background: var(--bs-primary);
}
.bs-section--dims .bs-section__eyebrow {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---- About ---- */
.bs-about__text h3::before {
	background: var(--bs-primary);
	border-radius: var(--bs-radius-pill);
}
.bs-licenses {
	border-radius: var(--bs-radius-lg);
	overflow: hidden;
	border-color: #eee;
}
.bs-license-item {
	border-color: #eee;
}
.bs-about__visual::before {
	border-radius: calc(var(--bs-radius-lg) - 8px);
	border-color: rgba(255, 0, 0, 0.15);
}

/* ========== SEVEN DIMENSIONS — animated hub ========== */
.bs-section--dims {
	background: linear-gradient(160deg, #000 0%, #120000 40%, #000 100%);
	color: #e8eaef;
	border-bottom: none;
	padding-bottom: 120px;
	position: relative;
	overflow: hidden;
}
.bs-section--dims::before {
	content: "";
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 0, 0, 0.15), transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.bs-section--dims h2 {
	color: var(--bs-primary, #ff0000);
}
.bs-section--dims .bs-section__head p {
	color: #a8afbe;
}
.bs-section--dims .bs-section__head p {
	color: #a8afbe;
}

.bs-dims-stage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	margin-top: 24px;
	position: relative;
	z-index: 1;
}

.bs-dims-orbit-wrap {
	--orbit-r: 0deg;
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	aspect-ratio: 1;
	overflow: hidden;
}

.bs-dims-orbit {
	position: absolute;
	inset: 0;
	z-index: 1;
	transform-origin: 50% 50%;
	will-change: transform;
}

.bs-dims-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	border-radius: 0;
	background: transparent;
	display: grid;
	place-items: center;
	box-shadow: none;
	z-index: 3;
}
.bs-dims-hub__logo {
	width: 80px;
	height: 80px;
	object-fit: contain;
	position: relative;
	z-index: 2;
}
.bs-dims-hub__num {
	position: absolute;
	bottom: 8px;
	font-family: "Thmanyah Display", serif;
	font-size: 0.75rem;
	font-weight: 900;
	color: #fff;
	opacity: 0.9;
	z-index: 2;
}
.bs-dims-hub__pulse {
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid var(--bs-primary);
	animation: bs-pulse-ring 2.5s ease-out infinite;
}
.bs-dims-hub__pulse--2 {
	animation-delay: 1.25s;
}

/* Nodes on circle — 7 positions */
.bs-dim-node {
	--dim-angle: calc((var(--dim-i) * 51.428deg) - 90deg);
	position: absolute;
	top: 50%;
	left: 50%;
	width: 110px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: translate(-50%, -50%) rotate(var(--dim-angle)) translateY(-175px) rotate(calc(-1 * var(--dim-angle) - var(--orbit-r, 0deg)));
	text-align: center;
	transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
	z-index: 2;
}
.bs-dim-node__dot {
	--dim-node-size: 64px;
	display: grid;
	place-items: center;
	width: var(--dim-node-size);
	height: var(--dim-node-size);
	margin: 0 auto 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	position: relative;
	transition: transform 0.3s ease, filter 0.3s ease;
}
.bs-dim-node__dot::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bs-dim-node-icon) center / contain no-repeat;
	background-size: contain;
	pointer-events: none;
	transition: background-image 0.3s ease, transform 0.3s ease;
}
.bs-dim-node__num {
	position: relative;
	z-index: 1;
	font-family: "Thmanyah Sans", sans-serif;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--bs-blue-brand, #3772ff);
	line-height: 1;
}
.bs-dim-node__title {
	display: block;
	font-family: "Thmanyah Display", serif;
	font-size: 0.82rem;
	font-weight: 700;
	color: #b0b6c4;
	line-height: 1.35;
	max-width: 120px;
	margin: 0 auto;
	text-align: center;
}
.bs-dim-node:hover .bs-dim-node__dot,
.bs-dim-node.is-active .bs-dim-node__dot {
	transform: scale(1.1);
}
.bs-dim-node:hover .bs-dim-node__dot::before,
.bs-dim-node.is-active .bs-dim-node__dot::before {
	background-image: var(--bs-dim-node-icon-on, var(--bs-dim-node-icon));
	filter: drop-shadow(0 0 14px rgba(244, 177, 11, 0.65));
}
.bs-dim-node.is-active .bs-dim-node__title {
	color: #fff;
}

/* Detail panel */
.bs-dims-panel {
	position: relative;
	min-height: 280px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--bs-radius-lg);
	padding: 40px 36px 56px;
	text-align: start;
}
.bs-dims-panel__slide {
	display: none;
}
.bs-dims-panel__slide.is-active {
	display: block;
	animation: bs-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bs-dims-panel__badge {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 0;
	background: var(--bs-dim-node-icon-on, var(--bs-dim-node-icon)) center / contain no-repeat;
	color: #000;
	font-weight: 800;
	font-size: 0.8rem;
	margin-bottom: 16px;
}
.bs-dims-panel__slide h3 {
	color: #fff !important;
	font-size: 1.5rem;
	margin-bottom: 12px;
}
.bs-dims-panel__slide p {
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0;
}
.bs-dims-panel__dots {
	position: absolute;
	bottom: 20px;
	left: 36px;
	right: 36px;
	display: flex;
	gap: 8px;
	justify-content: center;
}
.bs-dims-panel__pip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}
.bs-dims-panel__pip.is-active {
	background: var(--bs-primary);
	width: 24px;
	border-radius: var(--bs-radius-pill);
}

/* Mobile cards — hidden on desktop */
.bs-dims-cards {
	display: none;
	gap: 16px;
	overflow-x: auto;
	overflow-y: visible;
	padding: 8px 4px 20px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	touch-action: auto;
	overscroll-behavior-x: contain;
	overscroll-behavior-y: auto;
	margin-top: 32px;
}
.bs-dims-card {
	flex: 0 0 min(300px, 85vw);
	scroll-snap-align: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 0, 0, 0.2);
	border-radius: var(--bs-radius-lg);
	padding: 28px;
}
.bs-dims-card__num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 0;
	background: var(--bs-dim-node-icon) center / contain no-repeat;
	color: var(--bs-blue-brand, #3772ff);
	font-weight: 800;
	font-size: 0.8rem;
	margin-bottom: 14px;
}
.bs-dims-card h3 {
	color: #fff !important;
	font-size: 1.15rem;
	margin-bottom: 10px;
}
.bs-dims-card p {
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 0.92rem;
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 960px) {
	.bs-dims-stage {
		display: none;
	}
	.bs-dims-cards {
		display: flex;
	}
}

/* ---- Services marquee cards ---- */
.bs-services-sliders .bs-service-card {
	border-radius: var(--bs-radius-lg);
	border: 1px solid #eee;
	box-shadow: var(--bs-shadow);
	background: #fff;
}
.bs-services-sliders .bs-service-card:hover {
	border-color: var(--bs-primary);
	box-shadow: var(--bs-shadow-red);
	transform: translateY(-6px);
}
.bs-services-sliders .bs-service-icon {
	border-radius: 50%;
}

/* ---- Why us ---- */
.bs-why-item {
	border-radius: var(--bs-radius-lg);
	box-shadow: var(--bs-shadow);
	border: 1px solid #eee;
}
.bs-why-item::before {
	border-radius: var(--bs-radius-pill);
	background: var(--bs-primary);
	width: 48px;
}
.bs-why-item:nth-child(2)::before { background: var(--bs-yellow); }
.bs-why-item:nth-child(3)::before { background: var(--bs-black); }
.bs-why-num {
	color: var(--bs-primary);
}

/* ---- CTA ---- */
.bs-cta-banner {
	border-radius: var(--bs-radius-lg);
	background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
	border: none;
	box-shadow: var(--bs-shadow-red);
}
.bs-cta-banner::before {
	border-radius: calc(var(--bs-radius-lg) - 12px);
}
.bs-cta-banner .bs-btn-yellow {
	background: #fff !important;
	color: var(--bs-primary) !important;
	border-color: #fff !important;
}
.bs-cta-banner .bs-btn-ghost {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.5);
}

/* ---- Contact ---- */
.bs-contact-form-box,
.bs-channel-icon {
	border-radius: var(--bs-radius-lg);
}
.bs-channel-icon:hover,
.bs-contact-form-box input:focus,
.bs-contact-form-box select:focus,
.bs-contact-form-box textarea:focus {
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 3px var(--bs-primary-soft);
}
.bs-contact-form-box input[type="submit"],
.bs-contact-form-box button[type="submit"] {
	border-radius: var(--bs-radius-pill);
	background: var(--bs-primary);
	border-color: var(--bs-primary);
}
.bs-contact-form-box input[type="submit"]:hover,
.bs-contact-form-box button[type="submit"]:hover {
	background: var(--bs-primary-dark);
}
.bs-social-btn {
	border: none;
	border-radius: 0;
	background: transparent;
}
.bs-social-btn:hover {
	background: transparent;
	border: none;
	color: var(--bs-blue, #3772ff);
	transform: none;
	box-shadow: none;
}

/* ---- Footer ---- */
.bs-footer {
	border-top: 3px solid var(--bs-primary);
}
.bs-footer ul a:hover {
	color: var(--bs-primary);
}


/* ---- Reveal enhanced ---- */
.bs-reveal.is-visible {
	animation: bs-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero stat pills */
.bs-hero__stats {
	gap: 12px;
	border-top: none;
	padding-top: 8px;
	flex-wrap: wrap;
}
.bs-hero__stat {
	min-width: 100px;
	padding: 16px 12px;
	border-inline-start: none !important;
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--bs-radius-lg);
	border: 1px solid rgba(255, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
	.bs-hero::after,
	.bs-hero__symbol,
	.bs-dims-hub__pulse {
		animation: none;
	}
	.bs-reveal.is-visible {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
