:root {
	--accent: #9a47ff;
	--accent1: #810daf;
	--accent2: #ae31e0;
	--fg: #0a0a0a;
	--muted: #6b7280;
	--overlay-bg: rgba(0, 0, 0, 0.9);
	--btn-bg: #000;
	--btn-fg: #fff;
	--focus: #2563eb;
	--gap: 16px;
	--gap: clamp(16px, 3vw, 32px);
	--kpi-gap: clamp(12px, 2vw, 20px);
	--title-size: clamp(28px, 6vw, 56px);
	--sub-size: clamp(14px, 2.2vw, 18px);
	--cta-py: 12px;
	--cta-px: 18px;
	/* cursor start */
	--cursor-color: #9a47ff; /* ring & dot color */
	--outer-size: 40px; /* ring diameter */
	--dot-size: 6px; /* center dot diameter */
	--outer-border: 2px; /* ring thickness */
	--outer-lag: 0.18; /* 0..1: lower = more lag */
	--dot-lag: 0.35; /* 0..1: lower = more lag */
	--grow-scale: 1.9; /* ring scale on links/buttons */
	--black: #000;
	--white: #fff;
	--muted-2: #c9c9c9;
	--panel-bg: #0d0d0f; /* stage background */
	--panel-grad: linear-gradient(180deg, #101014 0%, #0b0b0d 100%);
	--container-w: 1200px;
	--side-pad: 20px;
	/* footer start */
	--footer-fg: #fff;
	--footer-muted: #cfcfcf;
	--footer-border: rgba(255, 255, 255, 0.08);
	/* footer end */

	/* blog */
	--blog-accent-1: #810daf;
	--blog-accent-2: #ae31e0;
	--glass-bg: rgba(17, 17, 17, 0.35);
	--glass-border: rgba(255, 255, 255, 0.35);
	/* blog end */

	/* cursor end */
	/* contact us page start */
	--radius: 16px;
	--icon-size: 40px;
	--gutter: 16px;
	--line-color: #ffffff;
	--muted: #5a5d79;
	--bg: #ffffff;
	--item-bg: #f7f7fb;
	--accent-weak: rgba(107, 123, 255, 0.1);
	--shadow: 0 6px 18px rgba(15, 16, 32, 0.08);
	--speed: 280ms;
	--curve: cubic-bezier(0.2, 0.7, 0.2, 1);
	/* contact us page end */
	/* blog post start */
	--bp-maxw: 1200px;
	--bp-gap: 28px;
	--bp-text: #1e1e1e;
	--bp-muted: #6b6b6b;
	--bp-line: #e9e9ee;
	--bp-soft: #f7f7fb;

	/* برند برای دکمه‌های اشتراک */
	--bp-li: #0a66c2; /* LinkedIn */
	--bp-fb: #1877f2; /* Facebook */
	--bp-x: #111111; /* X/Twitter */
	--bp-copy: #10a37f; /* Copy / Success */
	/* blog post end */

	/* projects start */
	--panel: #0a0d27; /* کارت سمت چپ */
	--stroke: #1f2343; /* خط دور کارت‌ها */
	--muted: #9aa0b5; /* متن فرعی */
	--text: #f6f7ff; /* متن اصلی روشن */
	--brand: #f5c443; /* رنگ دکمه */
	--white: #fff;
	--road-shadow: rgba(255, 255, 255, 0.06);
	--journey-width: 820px;
	--card: #0b0e2a; /* کارت اسلایدر */
	--chip: #12153a;
	--chip-stroke: #252a61;
	--accent-1: #6e73ff; /* بنفش پیشرفت */
	--accent-2: #c4c8ff;
	/* projects end */
	--desc-lines: 2; /* how many lines of description to show */
	--line-height: 1.4; /* used for max-height calc */
	--desc-font-size: 0.95rem;
	--swap-delay: 0.12s; /* delay between title out and desc in */
}
/* fonts start */

@font-face {
	font-family: "IRANSANS";
	src: url("../fonts/IranSans/IRANSansWeb.woff2") format("woff2");
	font-weight: 300;
	font-style: light;
	font-display: swap;
}
@font-face {
	font-family: "IRANSANS";
	src: url("../fonts/IranSans/IRANSansWeb_Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: medium;
	font-display: swap;
}
@font-face {
	font-family: "IRANSANS";
	src: url("../fonts/IranSans/IRANSansWeb_Bold.woff2") format("woff2");
	font-weight: 600;
	font-style: bold;
	font-display: swap;
}
/* fonts end */
/* Dark mode variables */
html.dark {
	--fg: #e5e7eb;
	--muted: #9ca3af;
	--overlay-bg: rgba(0, 0, 0, 0.96);
	--btn-bg: #fff;
	--btn-fg: #000;
	--focus: #f59e0b;

	/* Additional dark mode variables */
	--bg: #0f0f0f;
	--bg-secondary: #1a1a1a;
	--bg-tertiary: #2a2a2a;
	--border: #333;
	--text-primary: #ffffff;
	--text-secondary: #b3b3b3;
	--text-muted: #888888;
	--accent: #9a47ff;
	--accent-hover: #8b40e6;
	--shadow: rgba(0, 0, 0, 0.5);
	--card-bg: #1e1e1e;
	--input-bg: #2a2a2a;
	--input-border: #444;
	--success: #10b981;
	--warning: #f59e0b;
	--error: #ef4444;
	--info: #3b82f6;
}

/* Dark mode body and main containers */
html.dark body {
	background: var(--bg);
	color: var(--text-primary);
}

html.dark main.main-container {
	background: linear-gradient(
		90deg,
		var(--bg-secondary) 0%,
		var(--bg-tertiary) 100%
	);
}
main.main-container {
	background: linear-gradient(90deg, #f8f8f8 0%, #d7d7d7 100%);
	border-radius: 8px;
}
html.dark .services-section,
html.dark .dark-cta-section,
html.dark .banner-section,
html.dark .blog {
	background: var(--bg-secondary);
	border-color: var(--border);
}

/* Dark mode header */
html.dark header.main-top-header {
	background: linear-gradient(
		90deg,
		var(--bg-secondary) 0%,
		var(--bg-tertiary) 100%
	);
	border-color: var(--border);
}

html.dark .site-name,
html.dark nav .navlist a {
	color: var(--text-primary);
}

html.dark nav .navlist a:hover {
	background-color: var(--accent);
	color: var(--text-primary);
}

html.dark .btn {
	background: var(--accent);
	color: var(--text-primary);
}

html.dark .btn:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
}

/* Dark mode hero section */
html.dark .hero__title,
html.dark .hero__sub {
	color: var(--text-primary);
}

html.dark .kpi__num {
	color: var(--text-primary);
}

html.dark .kpi__label {
	color: var(--text-secondary);
}

/* Dark mode services section */
html.dark .services__lead {
	background: linear-gradient(
		90deg,
		var(--bg-secondary) 0%,
		var(--bg-tertiary) 100%
	);
	border-color: var(--border);
}

html.dark .service-card {
	background: linear-gradient(
		90deg,
		var(--card-bg) 0%,
		var(--bg-secondary) 100%
	);
	border-color: var(--border);
}

html.dark .service-card__title,
html.dark .service-card__text {
	color: var(--text-primary);
}

html.dark .services__badge {
	color: var(--text-primary);
}

/* Dark mode power section */
html.dark .power {
	background: var(--bg);
}

html.dark .power__heading {
	color: var(--text-primary);
}

html.dark .power__sub {
	color: var(--text-secondary);
}

/* Add these new styles for the theme transition */
@keyframes reveal-animation {
	from {
		clip-path: circle(0% at var(--x) var(--y));
	}
	to {
		clip-path: circle(150% at var(--x) var(--y));
	}
}

::view-transition-new(root) {
	animation: reveal-animation 0.7s ease-in-out;
	/* The new theme is revealed on top */
	z-index: 1;
}

::view-transition-old(root) {
	/* The old theme stays underneath and doesn't animate */
	animation: none;
	z-index: 0;
}

/* This isolates the transition layers to prevent default cross-fades */
::view-transition-image-pair(root) {
	isolation: isolate;
}
/* Dark mode team section */
/* html.dark .team {
	background: var(--bg-secondary);
} */

html.dark .team .overlay-title {
	color: var(--text-primary);
}

html.dark .member-name {
	color: var(--text-primary);
}

html.dark .member-role {
	color: var(--text-secondary);
}

/* Ensure team slider animations work in dark mode */
html.dark .member-img,
html.dark .member-name,
html.dark .member-role,
html.dark .overlay-title {
	opacity: 0;
	transform: translateY(70px);
	transition: all 1s ease, transform 1s ease;
}
html.dark .hamburger-icon {
	filter: invert(1);
}

html.dark .arrow-icon-service {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1681%)
		hue-rotate(312deg) brightness(102%) contrast(102%);
}
html.dark .swiper-slide-active .member-img {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.5s;
}

html.dark .swiper-slide-active .member-name {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1s;
}

html.dark .swiper-slide-active .member-role {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1.5s;
}

html.dark .swiper-slide-active .overlay-title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1.8s;
}

/* Dark mode why us section */
html.dark .whyus {
	background: var(--bg-secondary);
	border-color: var(--border);
	background-image: url(../media/shape/testdark5.png);
}
@media screen {
	html.dark .whyus {
		/* background-image: none !important; */
	}
}
html.dark .whyus__title {
	color: var(--text-primary);
}

html.dark .whyus__list li {
	color: var(--text-primary);
}

html.dark .whyus__bullet {
	border-color: var(--border);
}

/* Dark mode FAQ section */
html.dark .faq-item {
	background: var(--card-bg);
	border: 1px solid #ffffff29;
	border-color: var(--border);
}

html.dark .faq-question {
	color: var(--text-primary);
}

html.dark .faq-item.active {
	background: var(--bg-tertiary);
}

html.dark .faq-text {
	color: var(--text-secondary);
}

/* Dark mode footer */

html.dark .footer-col__title {
	color: var(--text-primary);
}

html.dark .footer-col__text,
html.dark .footer-links a,
html.dark .contact-link {
	color: var(--text-secondary);
}

html.dark .footer-links a:hover {
	background: var(--accent);
	color: var(--text-primary);
}

html.dark .brand__name {
	color: var(--text-primary);
}

html.dark .site-footer__bottom {
	color: var(--text-muted);
}

/* Dark mode blog post */
html.dark .bp-title {
	color: var(--text-primary);
}

html.dark .bp-meta {
	color: var(--text-secondary);
}

html.dark .bp-content h2,
html.dark .bp-content h3,
html.dark .bp-content p {
	color: var(--text-primary);
}

html.dark .bp-side-box {
	background: var(--card-bg);
	border-color: var(--border);
}

html.dark .bp-toc-title {
	color: var(--text-primary);
}

html.dark .bp-toc a {
	color: var(--text-secondary);
}

html.dark .bp-toc a:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

html.dark .bp-toc a.is-active {
	background: var(--accent);
	color: var(--text-primary);
}

html.dark .bp-subscribe {
	background: var(--card-bg);
	border-color: var(--border);
	color: var(--text-primary);
}

html.dark .bp-subscribe:hover {
	background: var(--accent);
	color: var(--text-primary);
}

html.dark .bp-end-block {
	background: var(--card-bg);
	border-color: var(--border);
}

html.dark .bp-chip {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

/* Dark mode projects */
html.dark .project-info {
	background: #3c3c3c;
	color: var(--text-primary);
}

html.dark .project-title {
	color: var(--text-primary);
	transition: all 0.3s ease;
}

html.dark .blog-meta-main {
	background: black;
	color: var(--text-primary);
	transition: all 0.3s ease-in-out;
}
html.dark .project-card:hover .blog-title {
	transform: translateY(-100%);
}

html.dark .project-card:hover .blog-description {
	transform: translateY(0);
}
html.dark .blog-description,
html.dark .project-title html.dark .blog-title {
	transition: all 0.3s ease-in-out;
}
html.dark .blog-title {
	color: var(--text-primary);
	transition: all 0.3s ease;
}

html.dark .blog-description {
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

/* Dark mode contact page */
html.dark .big-title {
	color: var(--text-primary);
}

html.dark .contact-list li {
	color: var(--text-primary);
}

html.dark .direct-contact {
	color: var(--text-primary);
}

html.dark input,
html.dark select,
html.dark textarea {
	background: var(--input-bg);
	border-color: var(--input-border);
	color: var(--text-primary);
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
	border-color: var(--accent);
}

html.dark .attachment {
	background: #696969;
	border: 1px solid #ffffff29;
}

html.dark .button-custom-contact {
	background: var(--accent);
	color: var(--text-primary);
}

/* Dark mode accordion */
html.dark .acc-title {
	color: var(--text-primary);
}

html.dark .acc-panel-inner {
	color: var(--text-secondary);
}

html.dark .acc-item {
	background: var(--card-bg);
	border-color: var(--border);
}

/* Dark mode overlay */
html.dark .overlay {
	background: rgba(0, 0, 0, 0.95);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

html.dark .overlay-nav li a {
	color: var(--text-primary);
}

html.dark .overlay-nav li a:hover {
	background-color: var(--accent);
	color: var(--text-primary);
}

html.dark .select {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border-color: var(--border);
}

html.dark .toggle {
	background: var(--accent);
	color: var(--text-primary);
}

html.dark .social:hover {
	background-color: black;
}

html.dark .overlay
/* Theme toggle button styling */
.theme-toggle-btn {
	position: relative;
}

.theme-toggle-btn:hover {
	transform: scale(1.1);
}

.theme-toggle-btn:active {
	transform: scale(0.95);
}

/* Theme Icons */
.theme-toggle-btn .icon {
	position: relative;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-toggle-btn .theme-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #000; /* Black icons in light mode */
	transition: color 0.3s ease;
	transform-origin: center;
	will-change: transform, opacity;
}

html.dark .theme-toggle-btn .theme-icon {
	color: #fff; /* White icons in dark mode */
}

/* Icon visibility - Moon visible by default */
.theme-toggle-btn #sunIcon {
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
}

.theme-toggle-btn #moonIcon {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Dark mode - Sun visible */
html.dark .theme-toggle-btn #sunIcon {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

html.dark .theme-toggle-btn #moonIcon {
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(0.8) rotate(-180deg);
}

/* Icon Toggle Switch */
.icon-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-toggle-input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.icon-toggle {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.icon-toggle-track {
	width: 75px;
	height: 37px;
	background: #333;
	border-radius: 30px;
	position: relative;
	transition: background-color 0.3s ease;
	border: 2px solid #555;
}

.icon-toggle-thumb {
	width: 30px;
	height: 30px;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	top: 2px;
	left: 5px;
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-toggle-thumb svg {
	width: 16px;
	height: 16px;
	transition: opacity 0.3s ease;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Icon states - Light mode (default) */
.icon-toggle-thumb .sun-icon {
	opacity: 1;
	color: #ffd700;
}

.icon-toggle-thumb .moon-icon {
	opacity: 0;
	color: #87ceeb;
}

/* Dark mode state */
.icon-toggle-input:checked + .icon-toggle-track {
	background: #ffd700;
	border-color: #ffb347;
}

.icon-toggle-input:checked + .icon-toggle-track .icon-toggle-thumb {
	transform: translateX(44px);
	background: #2c2c2c;
	left: -3px;
}

.icon-toggle-input:checked + .icon-toggle-track .icon-toggle-thumb .sun-icon {
	opacity: 0;
}

.icon-toggle-input:checked + .icon-toggle-track .icon-toggle-thumb .moon-icon {
	opacity: 1;
}

/* Hover effects */
.icon-toggle:hover .icon-toggle-track {
	border-color: #777;
}

.icon-toggle-input:checked:hover + .icon-toggle-track {
	border-color: #ffd700;
}

.icon-toggle:hover .icon-toggle-thumb {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Focus styles for accessibility */
.icon-toggle-input:focus + .icon-toggle-track {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Active state */
.icon-toggle:active .icon-toggle-thumb {
	transform: scale(0.95);
}

.icon-toggle-input:checked:active + .icon-toggle-track .icon-toggle-thumb {
	transform: translateX(44px) scale(0.95);
}

/* Dark mode background adjustments */
html.dark .icon-toggle-track {
	background: #555;
	border-color: #777;
}

html.dark .icon-toggle:hover .icon-toggle-track {
	border-color: #999;
}

/* Simple static icon (no drawing effect) */
.theme-toggle-btn svg {
	transition: all 0.2s ease;
	animation: none;
}

/* Glow animation */
@keyframes glow-pulse {
	0% {
		filter: drop-shadow(0 0 8px currentColor);
	}
	100% {
		filter: drop-shadow(0 0 16px currentColor) drop-shadow(0 0 24px currentColor);
	}
}

/* Dark mode specific styling */
html.dark .theme-toggle-btn {
	color: var(--text-primary);
}

html.dark .theme-toggle-btn:hover {
	color: var(--text-primary);
}

/* Overlay menu toggle text styling */
#themeToggle .toggle-text {
	margin-right: 8px;
}
#themeToggle {
	display: flex;
	align-items: center;
}

/* GSAP Theme transition reveal */

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	background: #e9e9e9;
}

/* 3) the floating ring */
.c-cursor__outer {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--outer-size);
	height: var(--outer-size);
	border: var(--outer-border) solid var(--cursor-color);
	border-radius: 50%;
	pointer-events: none;
	z-index: 99999;
	transform: translate(-50%, -50%);
	transition: opacity 0.25s ease, transform 0.12s ease;
	mix-blend-mode: difference;
	opacity: 0;
	will-change: transform;
}

/* 4) the center dot */
.c-cursor__dot {
	position: fixed;
	top: 16px;
	left: 16px;
	width: var(--dot-size);
	height: var(--dot-size);
	background: var(--cursor-color);
	border-radius: 50%;
	pointer-events: none;
	z-index: 99999;
	transform: translate(-50%, -50%);
	transition: opacity 0.25s ease, transform 0.07s ease;
	mix-blend-mode: difference;
	opacity: 0;
	will-change: transform;
}

/* 5) interactive state — ring grows on links/buttons or anything you tag */
.is-cursor-link .c-cursor__outer,
a:hover ~ .c-cursor__outer,
button:hover ~ .c-cursor__outer,
[data-cursor="link"]:hover ~ .c-cursor__outer {
	transform: translate(var(--outer-x), var(--outer-y)) scale(var(--grow-scale));
	opacity: 1;
}
/* dot subtly shrinks on interactive */
.is-cursor-link .c-cursor__dot,
a:hover ~ .c-cursor__dot,
button:hover ~ .c-cursor__dot,
[data-cursor="link"]:hover ~ .c-cursor__dot {
	transform: translate(var(--dot-x), var(--dot-y)) scale(0.8);
}

/* 6) pressed feedback */
.c-cursor--down .c-cursor__outer {
	transform: translate(var(--outer-x), var(--outer-y)) scale(1.2);
}
.c-cursor--down .c-cursor__dot {
	transform: translate(var(--dot-x), var(--dot-y)) scale(0.6);
}

/* 7) accessibility & mobile: show normal cursor on touch or reduced motion */
@media (hover: none), (pointer: coarse) {
	.c-cursor__outer,
	.c-cursor__dot {
		display: none !important;
	}
	body,
	a,
	button,
	input,
	textarea,
	select {
		cursor: auto !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.c-cursor__outer,
	.c-cursor__dot {
		transition: none;
	}
}

/* reset start */
a {
	text-decoration: none;
}

a,
p,
span,
div,
ul,
ol,
li,
button,
input,
textarea,
select,
option,
label,
hr,
table,
tbody,
tr,
th,
td,
strong,
caption h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "IRANSANS" !important;
}
body {
	font-family: "IRANSANS" !important;
}
.margin-auto {
	margin: auto;
}
.main-container {
	margin: 0.8rem;
	overflow: hidden;
}
.services-section,
.dark-cta-section,
.banner-section,
.blog,
.whyus,
footer {
	margin: 0.8rem;
	border-radius: 0.5rem;
}
.services-section.no-margin {
	margin: unset;
}
/* reset end */

/* header start  */
/* Header layout */
header.main-top-header {
	position: relative;
	z-index: 20;
	padding: 12px 20px;
	border-radius: 0.5rem;
	background: linear-gradient(90deg, #f8f8f8 0%, #d7d7d7 100%);
	margin: 0.8rem;
	border: 1px solid white;
}
.row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--gap);
}

/* Left: logo + name */
.brand-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-self: end;
	min-width: 0;
}
.logo {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.site-name {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--fg);
}

/* Center: nav */
nav .navlist {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}
nav .navlist a {
	padding: 4px 10px;
	line-height: 1;
	border-radius: 0; /* square */
	color: var(--fg);
	transition: all 0.3s ease;
}
nav .navlist a:hover {
	color: white;
	background-color: #000;
	border-radius: 100px;
}
nav .navlist a:focus-visible,
.icon-btn:focus-visible,
.btn:focus-visible,
select:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* Right: hamburger + contact */
.actions {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-self: start;
}
.btn {
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: none;
	border-radius: 0;
	padding: 3px 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: fit-content;
	margin-right: auto;
}
.btn:hover {
	background-color: #ffffff;
	color: rgb(0, 0, 0);
	border: 1px solid rgb(0, 0, 0);
}
.icon-btn {
	appearance: none;
	border: none;
	background: transparent;
	padding: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.icon {
	width: 24px;
	height: 24px;
	display: inline-block;
}

/* Fullscreen overlay menu */
.overlay {
	position: fixed;
	inset: 0;
	display: grid;
	grid-template-rows: auto 1fr auto;
	color: #fff;
	transform: translateY(-2%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	padding: 24px;
	z-index: 30;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10.6px);
	-webkit-backdrop-filter: blur(10.6px);
	overscroll-behavior: contain;
}
.overlay[aria-hidden="false"] {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.overlay-top {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.overlay-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}
.overlay-close {
	color: #fff;
}

.overlay-main {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 32px;
	text-align: center;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	max-height: calc(100vh - 200px);
	padding: 40px 0;
	overscroll-behavior: contain;
	/* Hide scrollbar */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.overlay-main::-webkit-scrollbar {
	display: none;
}
.overlay-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 16px;
	font-size: clamp(20px, 3.5vw, 40px);
	font-weight: 600;
}
.overlay-nav li a {
	color: white;
}
.overlay-nav li a:hover {
	color: black;
	background-color: white;
	border-radius: 100px;
	padding: 4px 20px;
	line-height: 1;
	border-radius: 100px;
	color: var(--fg);
	transition: all 0.3s ease;
}
.overlay-ctrls {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.overlay-ctrls .select {
	display: none;
}
.close-icon {
	transform: scale(1.8);
	transition: all 0.3s ease;
	background-color: #000;
}
.close-icon:hover {
	filter: invert(1);
	transform: scale(2.2);
}
.select {
	background: #111;
	color: #fff;
	border: 1px solid #222;
	border-radius: 0;
	padding: 10px 12px;
	min-width: 160px;
}
.toggle {
	background: #fff;
	color: #000;
	border-radius: 0;
	border: none;
	padding: 10px 14px;
	cursor: pointer;
}
.overlay-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	color: #e5e7eb;
}
.social {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.social:hover {
	background-color: #000000;
	transform: scale(1.1);
	filter: invert();
}
/* Make sure layout stays nice on very small widths */
@media (max-width: 420px) {
	nav .navlist {
		gap: 12px;
	}
	.site-name {
		display: none;
	} /* optional: hide long name on tiny screens */
}
@media (max-width: 768px) {
	.actions {
		margin-left: auto !important;
	}
	.row {
		display: flex !important;
		align-items: center;
		gap: unset !important;
		justify-content: space-around;
	}
	.site-name {
		display: inline !important;
	}
	.btn {
		padding: 2px 10px !important;
	}
	.desktop-nav {
		display: none !important;
	}
}

/* Dropdown Menu Styles */
.nav-dropdown {
	position: relative;
}

/* Create a hover bridge to fill the gap - wider area for easier mouse movement */
.nav-dropdown::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0px;
	right: 8px;
	height: 8px;
	pointer-events: auto;
	background: transparent;
	z-index: 9998;
	width: 135px;
}

.dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
	padding: 4px 10px;
	line-height: 1;
	border-radius: 0;
	color: var(--fg);
	transition: all 0.3s ease;
	text-decoration: none;
}

.dropdown-toggle:hover {
	color: white;
	background-color: #000;
	border-radius: 100px;
}

.dropdown-arrow {
	transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
	transform: rotate(180deg);
}

.navlist .dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-35%);
	width: max-content;
	max-width: 90vw;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 9999;
	padding: 24px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.dropdown-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.dropdown-column h4.dropdown-category {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--fg);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dropdown-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dropdown-column ul li {
	margin-bottom: 8px;
}

.dropdown-column ul li a {
	display: block;
	padding: 8px 8px;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	border-radius: 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dropdown-column ul li a:hover {
	background-color: #f5f5f5;
	color: #000;
}

.dropdown-column ul li:last-child a {
	border-bottom: none;
}

/* Dark mode for dropdown */
html.dark .dropdown-menu {
	background: var(--bg-secondary);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html.dark .dropdown-toggle {
	color: var(--text-primary);
}

html.dark .dropdown-toggle:hover {
	color: var(--text-primary);
	background-color: var(--accent);
	border-color: var(--accent);
}

html.dark .dropdown-column h4.dropdown-category {
	color: var(--text-primary);
}

html.dark .dropdown-column ul li a {
	color: var(--text-primary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .dropdown-column ul li a:hover {
	background-color: var(--bg-tertiary);
	color: var(--text-primary);
}

/* Mobile dropdown styles for overlay */
.overlay-dropdown-item {
	position: relative;
}

.overlay-dropdown-toggle {
	display: flex;
	width: 100%;
	background: none;
	border: none;
	color: #fff;
	padding: 12px 0;
	cursor: pointer;
}

.overlay-dropdown-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-size: 18px;
}

.dropdown-arrow-mobile {
	transition: transform 0.3s ease;
}

.overlay-dropdown-item.active .dropdown-arrow-mobile {
	transform: rotate(180deg);
}

.overlay-dropdown-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding-right: 0;
}

.overlay-dropdown-item.active .overlay-dropdown-menu {
	max-height: 2000px;
}

.overlay-dropdown-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-top: 16px;
	padding-right: 0;
}

.overlay-dropdown-group {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.overlay-dropdown-group > .overlay-dropdown-link:last-child {
	border-bottom: none;
}

.overlay-dropdown-category {
	margin: 0 0 16px 0;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 8px;
}

.overlay-dropdown-link {
	display: flex;
	align-items: center;
	padding: 12px 0;
	min-height: 44px;
	color: #ccc;
	text-decoration: none;
	font-size: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: color 0.2s ease, padding-right 0.2s ease;
	line-height: 1.4;
}

.overlay-dropdown-link:hover {
	color: #fff;
	padding-right: 8px;
}

@media (min-width: 480px) {
	.overlay-dropdown-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

/* Responsive dropdown */
@media (max-width: 992px) {
	.dropdown-columns {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.dropdown-menu {
		width: 600px;
	}
}

@media (max-width: 768px) {
	.dropdown-columns {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.dropdown-menu {
		width: 90vw;
		left: 50%;
	}
}

@media (max-width: 480px) {
	.dropdown-menu {
		padding: 16px;
	}

	.dropdown-column ul li a {
		font-size: 13px;
	}
}
@media (min-width: 768px) {
	li.overlay-dropdown-item {
		display: none !important;
	}
}
/* header end */
/* main content start */

/* hero section start */
.hero {
	color: var(--fg);
	background: transparent; /* no background to blend with your page */
	padding: clamp(20px, 5vw, 60px) 20px;
}
.hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	align-items: center;
	gap: var(--gap);
	grid-template-columns: 1.1fr 1fr; /* text wider than image */
}
/* Stack on small screens */
@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
	}
	.hero__media {
		order: -1;
	} /* image on top for mobile */
}

.hero__text {
	display: grid;
	gap: clamp(12px, 2vw, 18px);
}
.hero__title {
	width: 387px;
	margin: 0;
	font-size: var(--title-size);
	line-height: 1.1;
	font-weight: 800;
}
.hero__sub {
	margin: 0;
	font-size: var(--sub-size);
	line-height: 1.8;
	color: var(--muted);
	/* LCP optimization: ensure immediate rendering without delays */
	opacity: 1;
	visibility: visible;
	display: block;
	/* Optimize font rendering */
	font-display: swap;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.hero__sub {
			margin: 0;
			font-size: clamp(14px, 2.2vw, 18px);
			line-height: 1.8;
			color: var(--muted, #6b7280);
			opacity: 1 !important;
			visibility: visible !important;
			display: block !important;
		}
		body.preloader-active .hero,
		body.preloader-active .hero * {
			opacity: 1 !important;
			visibility: visible !important;
		}
		/* Critical CSS for LCP: hero image immediate rendering */
		.hero__media,
		.hero__media img {
			opacity: 1 !important;
			visibility: visible !important;
			display: block !important;
		}
		body.preloader-active .hero__media,
		body.preloader-active .hero__media img {
			opacity: 1 !important;
			visibility: visible !important;
			display: block !important;
		}
/* KPIs */
.kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--kpi-gap);
	margin: 10px 0px 20px 0px;
	justify-items: center;
}

.kpi {
	display: flex;
	align-items: baseline;
	gap: 10px;
	white-space: nowrap;
	flex-direction: column;
}
.kpi__badge {
	color: var(--accent);
	font-weight: 200;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 999px; /* badge look */
	display: inline-block;
	font-size: 35px;
	transform: translate(-12px, 9px);
}
.kpi__num {
	font-size: clamp(22px, 4.5vw, 36px);
	font-weight: 800;
	line-height: 1;
	/* Prevent width jitter while numbers change */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	display: inline-block;
	text-align: right;
	/* Reserve space based on target digits (set via JS) */
	min-width: calc(var(--kpi-digits, 3) * 1ch);
}
.kpi__label {
	color: var(--muted);
	font-size: clamp(12px, 2vw, 14px);
}

/* CTA */
.cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: var(--cta-py) var(--cta-px);
	color: #9a47ff;
	border-radius: 0; /* square corners per your style */
	text-decoration: none;
	width: fit-content;
	margin-top: 6px;
	font-size: 32px;
	font-weight: 600;
	transition: all 0.3s ease;
}
.cta:hover,
.cta:focus-visible {
	background-color: rgb(0, 0, 0);
	color: white;
	border-radius: 100px;
}
.cta:hover .mail-icon,
.cta:focus-visible .mail-icon {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%)
		hue-rotate(180deg) brightness(95%) contrast(102%);
}
.cta__icon {
	display: inline-flex;
}
@media (max-width: 768px) {
	.cta {
		margin: auto;
		background-color: rgb(0, 0, 0);
		color: white;
		border-radius: 100px;
		padding: 10px 40px;
		font-size: 24px;
		font-weight: 600;
		transition: all 0.3s ease;
	}
	.cta__icon {
		filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%)
			hue-rotate(180deg) brightness(95%) contrast(102%);
	}
}
/* Media */
.hero__media {
	justify-self: stretch;
}
.hero__media img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}
@media (max-width: 768px) {
	.hero__media {
		justify-self: center;
	}
	.hero__media img {
		width: 250px;
	}
}
@media (min-width: 768px) and (max-width: 900px) {
	.hero__media {
		justify-self: center;
	}
	.hero__media img {
		width: 400px;
	}
}
/* Accessibility: visible focus */
.cta:focus-visible,
.kpi__badge:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
/* hero section end */

/* services section start */

.services__grid {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr; /* left = half, right = half */
	gap: 12px;
	align-items: stretch;
	grid-auto-rows: 1fr;
}

.services-section {
	--lead-h: clamp(280px, 55vh, 420px);
}

/* Left lead box spans 3 rows to match the stacked cards */
.services__lead {
	grid-row: span 3;
	min-height: var(--lead-h);
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0;
	border-radius: 0; /* minimal */
	background: radial-gradient(60% 80% at 70% 20%, #f3f4f6 0%, #ffffff 60%);
	overflow: hidden;
}

.services__lead-top {
	display: flex;
	justify-content: flex-end;
	z-index: 1;
}
.services__badge {
	font-weight: 700;
	font-size: 52px;
	text-align: center;
}
.services__lead-center {
	flex: 1;
	position: relative;
	display: flex;
}
.services__lead-center img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.services__lead {
	background: linear-gradient(90deg, #f8f8f8 0%, #d7d7d7 100%);
	/* background-image: url("../media/shape/myservicesbg.png"); */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 0.4px solid #0000001c;
	border-radius: 8px;
}
/* Service cards stack to fill the same height as left box (each = 1/3) */
.service-card {
	position: relative;
	border-radius: 8px;
	padding: clamp(16px, 2.5vw, 22px);
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(90deg, #c7c7c7 0%, #ffffff 100%);
	display: grid;
	align-content: center;
	height: calc(
		var(--lead-h) / 3 - 8px
	); /* Fixed height: 3 cards total height ~= lead box, accounting for gap */
	width: 40%; /* Start shrunken */
	justify-self: end; /* Align to right to expand leftward */
}

/* Cursor-animated hover fill using a pseudo-layer and clip-path circle */
.service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #810daf 0%, #661f82 100%);
	transform: translateZ(0);
	clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
	transition: clip-path 500ms ease;
}
html.dark .service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #810daf 0%, #661f82 100%);
	transform: translateZ(0);
	clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
	transition: clip-path 500ms ease;
}
.service-card__content {
	display: grid;
	gap: 10px;
	position: relative;
	z-index: 1;
	height: 100%;
	overflow: hidden;
	justify-items: end;
	text-align: end;
}
@media (max-width: 768px) {
	.service-card__content {
		text-align: end;
	}
}
.service-card__title {
	margin: 0;
	font-size: clamp(16px, 2.2vw, 20px);
	font-weight: 800;
	justify-self: end; /* top-right in RTL */
}
.service-card__text {
	margin: 0;
	display: block;
	color: #000000;
	transition: all 0.3s ease;
	font-size: 18px;
	text-align: end;
	justify-self: end;
}
.service-card__icon {
	display: inline-flex;
	line-height: 0;
}
.arrow-icon-service {
	width: 23px;
	height: 23px;
	filter: brightness(0) saturate(100%) invert(0%) sepia(97%) saturate(7463%)
		hue-rotate(131deg) brightness(106%) contrast(96%);
}
/* Hover image (hidden until hover) */
.service-card__image {
	position: absolute;
	inset: auto auto 0 0; /* bottom-left by default in RTL */
	width: 46%;
	max-width: 240px;
	transform: translateY(20px) scale(0.96);
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
	z-index: 0;
	left: 200px;
}
.services__lead-center {
	position: relative;
	isolation: isolate;
}
.gear {
	display: block;
	width: min(60%, 280px);
	height: auto;
	/* soft shadow via CSS, no halos */
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18))
		drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}
.services__lead-center {
	position: relative;
	isolation: isolate;
}
.service-card__image {
	display: none;
}
.gear-wrap {
	position: relative;
	display: inline-block;
}
.gear-img {
	display: block;
	mix-blend-mode: normal;
}

/* 3D gear container replaces the image */
.gear-3d {
	width: min(420px, 100%);
	aspect-ratio: 1 / 1; /* keep square area */
	display: block;
	position: relative;
}
.gear-wrap canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

/* Fake soft ellipse shadow under it so you can disable the baked shadow if needed */
.gear-wrap::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -27%;
	transform: translateX(-77%);
	width: 70%;
	aspect-ratio: 3 / 1;
	border-radius: 50%;
	background: radial-gradient(
		50% 60% at 50% 50%,
		rgb(0 0 0 / 13%) 0%,
		rgb(0 0 0 / 11%) 70%
	);
	filter: blur(6px);
	pointer-events: none;
}

/* test */
/* Gear area: responsive square that scales nicely */
.gear-wrap {
	width: 100%;
	max-width: 560px; /* grows up to this on large screens */
	margin-inline: auto;
	aspect-ratio: 1 / 1; /* square on all screens */
	display: grid;
	place-items: center;
}

.gear-3d {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Make it breathe on very small screens */
@media (max-width: 420px) {
	.gear-wrap {
		max-width: 92vw;
	}
}

/* test */
/* Responsive: stack all on small devices */
@media (max-width: 940px) {
	.services__grid {
		grid-template-columns: 1fr;
	}
	.services__lead {
		grid-row: auto;
		min-height: clamp(280px, 45vh, 460px);
	}
	.service-card {
		min-height: 150px;
		max-height: 160px;
	}
}
@media (max-width: 940px) {
	.services__grid {
		gap: 12px;
		grid-auto-rows: auto; /* prevent fixed/tall rows */
	}
	.services__badge {
		margin: 10px auto;
	}
}

/* services section end */
/* main content end */

/* dark cta section start */
.power {
	--power-bg-opacity: 0;
	background-color: transparent;
	color: var(--white);
	padding: clamp(32px, 6vw, 88px) 0;
	padding-bottom: 0px;
	position: relative;
	/* overflow: hidden; */
	isolation: isolate;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	transition: box-shadow 0.8s ease;
}
.power::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #06040c;
	opacity: var(--power-bg-opacity);
	transition: opacity 0.2s ease;
	pointer-events: none;
	z-index: 0;
	border-radius: 8px !important;
}
.power * {
	position: relative;
	z-index: 1;
}
.power.power--active {
	--power-bg-opacity: 1;
}
.bottom-row {
	background-image: url("../media/images/16399762_v683-aew-19-abstractbackground\ 1.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.power__container {
	margin-inline: auto;
	padding-inline: var(--side-pad);
	display: grid;
	gap: clamp(18px, 4vw, 36px);
}

/* Row 1 layout: two "slots" aligned diagonally */
.power__row--text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-height: clamp(220px, 30vw, 360px);
}

.power__heading {
	margin: 0px 0px 15px 0px;
	justify-self: end; /* right side (RTL) */
	align-self: start; /* top */
	text-align: right;
	letter-spacing: -0.02em;
	line-height: 1.05;
	font-weight: 800;
	/* "100px responsive" using clamp */
	font-size: clamp(34px, 9vw, 100px);
	max-width: 18ch;
}
/* Gradient heading (keep your existing rules, add these if missing) */
.power__heading {
	background: linear-gradient(-90deg, #d2d2d2 0%, #7b7b7b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: white;
	background-clip: text;
	color: white;
	display: inline; /* GSAP will set inline-block on each word */
}

/* Only hide words if JS is enabled */
html.js .power__heading .word {
	opacity: 0;
	transform: translateY(30%);
}
.power__heading .word {
	display: inline-block; /* needed for transform per word */
	will-change: transform, opacity;
}
.power__sub {
	margin: 0;
	justify-self: flex-end; /* left side (RTL) */
	align-self: end; /* bottom */
	text-align: justify;
	color: var(--muted-2);
	line-height: 2;
	font-size: clamp(14px, 2.2vw, 18px);
	max-width: 48ch;
	content-visibility: auto;
	contain-intrinsic-size: auto 200px;
}

/* Row 2: stage panel */
.power__stage {
	/* small margins left/right without touching edges */
	margin-inline: clamp(10px, 3vw, 28px);
	border-radius: 30px 30px 0 0; /* top corners 30, bottom 0 */
	overflow: visible; /* allow image to stick out */
}

.power__stage-inner {
	position: relative;
	min-height: clamp(220px, 42vw, 520px); /* responsive height */
	display: grid;
	place-items: center;
	/* keep content centered and give breathing room on small screens */
	padding: clamp(20px, 5vw, 40px);
}

.power__laptop {
	z-index: 999;
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%); /* center; pull upward so it protrudes */
	width: min(59%, 700px);
	height: auto;
	display: block;
	/* Ensure soft edge; PNG should have transparency */
	image-rendering: auto;
	pointer-events: none;
}

/* Mobile stacking & spacing */

@media (max-width: 900px) {
	.power__row--text {
		grid-template-columns: 1fr;
		min-height: unset;
		gap: clamp(16px, 3.5vw, 24px);
	}
	.power__heading {
		justify-self: start; /* keep in flow on small screens */
		text-align: right; /* stay RTL aligned */
		max-width: none;
	}
	.power__sub {
		justify-self: start;
		text-align: center; /* better readability on RTL mobile */
		max-width: none;
	}
	.power__laptop {
		width: min(66%, 720px);
		transform: translate(
			-50%,
			-48%
		); /* slightly less protrusion on small screens */
	}
}
@media (max-width: 480px) {
	.power__laptop {
		width: 77%;
		/* Transform controlled by GSAP - no CSS transform to avoid conflicts */
		/* GSAP will set xPercent: -50, yPercent: -20 initially via JavaScript */
	}
}

/* Very small devices: reduce protrusion more */

/* dark cta section end */
/* blog section start */

/* blog section end */

/* why us section start */
.whyus {
	z-index: -1;
	background: #fff;
	border: 0.4px solid var(--hairline); /* subtle stroke */
	border-left: 0;
	border-right: 0; /* optional: only top/bottom */
	padding: clamp(20px, 5vw, 56px) 20px;
}

.whyus__container {
	max-width: 1200px;
	margin-inline: auto;
}

.whyus__title {
	margin: 0 0 clamp(16px, 3vw, 28px) 0;
	font-weight: 800;
	font-size: clamp(20px, 4.2vw, 32px);
	text-align: center;
	letter-spacing: -0.01em;
	color: #0a0a0a;
}

/* 3-column layout: left list – center media – right list */
.whyus__grid {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 480px) 1fr;
	/* gap: clamp(16px, 3vw, 28px); */
	align-items: center;
}

/* Lists */
.whyus__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: clamp(12px, 2.2vw, 16px);
	color: #111827;
	font-size: clamp(14px, 2.4vw, 16px);
	line-height: 1.9;
}
.whyus__list--left {
	justify-self: end;
	text-align: right;
}
.whyus__list--right {
	justify-self: start;
	text-align: left;
}

.whyus__list li {
	display: grid;
	padding: 12px;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	text-align: justify;
	background: rgb(255 255 255 / 0%);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgb(46 8 255 / 8%);
	/* backdrop-filter: blur(2px); Removed for performance - very expensive on scroll */
	/* -webkit-backdrop-filter: blur(2px); */
	border: 1px solid rgba(255, 255, 255, 0.3);
	/* Performance optimizations */
	will-change: transform;
	transform: translateZ(0); /* Promote to GPU layer */
	contain: layout style paint; /* Isolate rendering */
}
@media (max-width: 900px) {
	.whyus__list li {
		display: flex;
		flex-direction: column;
		align-items: center; /* Center horizontally */
		text-align: center; /* Center text */
		width: 100%; /* Make all li items the same width */
		box-sizing: border-box; /* Include padding in width calculation */
	}
}
.whyus__bullet {
	display: inline-grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 0.4px solid var(--hairline);
}

/* Center media */
.whyus__media {
	position: relative;
	aspect-ratio: 1 / 1; /* square stage */
	display: grid;
	place-items: center;
}

.whyus__image {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.1));
}

/* Responsive: hide center media & stack lists under each other */
@media (max-width: 900px) {
	.whyus__grid {
		grid-template-columns: 1fr;
	}
	.whyus__media {
		display: none;
	}
	.whyus__list--left,
	.whyus__list--right {
		justify-self: stretch;
		width: 100%; /* Ensure lists take full width */
		max-width: 100%; /* Prevent overflow */
		text-align: right; /* keep RTL-friendly reading on small screens */
		border-top: 0.4px solid var(--hairline);
		padding-top: 12px;
	}
	.whyus__list--right {
		border-top: none;
	}
}
.whyus {
	position: relative; /* so the dots can be positioned absolutely inside */
	background: #fff;
	border: 0.4px solid rgba(0, 0, 0, 0.2);
	border-left: 0;
	border-right: 0;
	padding: clamp(20px, 5vw, 56px) 20px;
	overflow: hidden; /* hide overflow if dots go out */
}

.whyus__container {
	position: relative;
	z-index: 1; /* content stays above dots */
}
/* why us section end */

/* features section start */
.features-section {
	position: relative;
	background: #fff;
	border: 0.4px solid rgba(0, 0, 0, 0.2);
	border-left: 0;
	border-right: 0;
	padding: clamp(20px, 5vw, 56px) 20px;
	overflow: hidden;
}

.features-container {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
}

.features-title {
	margin: 0 0 clamp(24px, 5vw, 48px) 0;
	font-weight: 800;
	font-size: clamp(20px, 4.2vw, 32px);
	text-align: center;
	letter-spacing: -0.01em;
	color: #0a0a0a;
}

/* 4-column layout for features on desktop */
.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(12px, 2vw, 24px);
	align-items: start;
}

/* Lists */
.features-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: contents; /* Allow items to flow into parent grid */
}

.features-list li {
	display: grid;
	padding: 12px;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	text-align: right; /* RTL text alignment */
	background: rgb(255 255 255 / 0%);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgb(46 8 255 / 8%);
	/* backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px); */
	border: 1px solid rgba(255, 255, 255, 0.3);
	/* transition: transform 0.3s ease, box-shadow 0.3s ease; */
	grid-column: span 1; /* Each item takes one column */
	/* Performance optimizations */
	will-change: transform;
	transform: translateZ(0); /* Promote to GPU layer */
	contain: layout style paint; /* Isolate rendering */
}

@media screen and (min-width: 768px) {
	.features-list li:hover {
		transform: translateY(-2px) translateZ(0);
		box-shadow: 0 4px 12px rgb(46 8 255 / 12%);
	}
}

/* Center the last item if it's alone in the row (25th item out of 4 columns = position 25) */
/* On desktop with 4 columns: span from column 2 to 4 (spans 2 columns in the center) */
.features-list li:nth-child(25) {
	grid-column: 2 / 4; /* Span 2 columns (columns 2-4) to center it */
}

.features-bullet {
	display: inline-grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 0.4px solid var(--hairline);
}

/* Responsive styles */
@media (max-width: 1200px) {
	.features-grid {
		grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
		gap: clamp(12px, 2vw, 20px);
	}

	/* 3 columns: span from 2 to 3 to center */
	.features-list li:nth-child(25) {
		grid-column: 2 / 3;
	}
}

@media (max-width: 900px) {
	.features-list li {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller tablets */
	}

	/* 2 columns: this will be the only item, so take full width is fine or centered */
	.features-list li:nth-child(25) {
		grid-column: 1 / 4;
	}
}

@media (max-width: 600px) {
	.features-grid {
		grid-template-columns: 1fr; /* 1 column on mobile */
	}
}

/* Dark mode for features */
html.dark .features-section {
	background: var(--bg-secondary);
	border-color: var(--border);
}

html.dark .features-title {
	color: var(--text-primary);
}

html.dark .features-list li {
	color: var(--text-primary);
}

html.dark .features-bullet {
	border-color: var(--border);
}

/* Initial state for GSAP animation */
/* .features-title {
	opacity: 0;
	transform: translateY(50px);
	will-change: transform, opacity;
} */

/* features section end */

/* footer start */

.site-footer {
	background-color: #000;
	background-image: url("../media/images/Background\ grid.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	isolation: isolate;
	position: relative;
	color: var(--footer-fg);
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
@media (max-width: 768px) {
	.site-footer {
		margin: unset;
		overflow: visible;
		width: 100%;
		box-sizing: border-box;
	}
	.site-footer__container {
		text-align: center;
		height: auto;
		padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 20px);
	}
}
.site-footer__container {
	margin-inline: auto;
	padding: clamp(24px, 5vw, 56px) 20px;
	display: grid;
	gap: clamp(18px, 3vw, 28px);
	min-height: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
/* Top 3 columns */
.site-footer__top {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 3vw, 28px);
}
@media (max-width: 900px) {
	.site-footer__top {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.site-footer__top {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

.footer-col__title {
	margin: 0 0 10px 0;
	font-size: clamp(16px, 2.4vw, 18px);
	font-weight: 800;
}
.footer-col__text {
	margin: 0;
	color: var(--footer-muted);
	line-height: 1.9;
	font-size: 14px;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.footer-links a {
	color: var(--footer-muted);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px dashed transparent;
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover {
	border-color: var(--footer-border);
	background: white;
	color: black;
	padding: 2px 18px;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.contact-link {
	color: var(--footer-muted);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: color 0.2s ease;
}
.contact-link:hover {
	color: #fff;
}
.icon {
	display: inline-grid;
	place-items: center;
	color: #fff;
}

/* Brand + socials */
.site-footer__brand {
	display: grid;
	gap: 11px;
	padding: 16px 0;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	margin: auto;
}
.brand__name {
	font-weight: 700;
	font-size: 16px;
}

.socials {
	list-style: none;
	margin: auto;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 23px;
}
.social-btn {
	display: grid;
	place-items: center;
	color: #000;
	border-radius: 999px;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
		color 0.2s ease;
}
.social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
html.dark .social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.site-footer__bottom {
	text-align: center;
	color: var(--footer-muted);
	font-size: 18px;
	align-self: end;
	margin-top: auto;
}
.socials {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.social-btn {
	position: relative;
	display: inline-block;
	width: 33px;
	height: 29px;
	overflow: hidden;
}

.social-btn img {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	object-fit: contain;

	border: 1px solid var(--hairline);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Top icon visible, bottom one below */
.social-btn img:first-child {
	transform: translateY(0);
}

.social-btn img:last-child {
	transform: translateY(100%);
}

/* On hover → swap positions */
.social-btn:hover img:first-child {
	transform: translateY(-100%);
}

.social-btn:hover img:last-child {
	transform: translateY(0);
}

/* footer end */

/* test gsap start */

.button-wrapper {
	position: relative;
	width: fit-content;
}
.button-decor {
	position: absolute;
	top: 33%;
	left: 43%;
	transform: scale(0);
	pointer-events: none;
}
.button-gsap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: inherit;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: bold;
	padding: 7px 20px;
	min-width: 12.125rem;
	border: 0.4px solid #939393;
	border-radius: 6.25rem;
	gap: 0.36em;
	box-sizing: border-box;
	background-color: #ffffff80;
	color: #000000;
}
.button__item.icon2 {
	background-color: #000000;
	color: #fff;
	border-radius: 100px;
	padding: 8px;
}
.icon-wrap {
	display: flex;
}
/* test gsap end */

/* about us page start */
.hero-grid {
	display: grid;
	gap: 32px;
	align-items: center;
	grid-template-columns: 1fr;
}
.hero-headline {
	font-size: clamp(28px, 4.5vw, 56px);
	line-height: 1.05;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.hero-tagline {
	margin: 0;
	font-size: clamp(16px, 1.4vw, 20px);
	color: var(--muted);
}
@media (min-width: 900px) {
	.hero-grid {
		grid-template-columns: 1.1fr 1fr;
	}
	.hero-tagline {
		justify-self: end;
		max-width: 45ch;
		text-align: right;
	}
}

/* --------- Scroll‑Marquee Gallery (two rows) --------- */
.marquee {
	position: relative;
}
.marquee .rows {
	display: grid;
	gap: 28px;
}
.marquee-row {
	overflow: hidden;
	position: relative;
}
.marquee-track {
	display: flex;
	gap: 20px;
	will-change: transform;
	justify-content: center;
}
.marquee-item {
	flex: 0 0 calc((100% - 40px) / 3); /* 3 visible items with 20px gaps */
	height: clamp(140px, 26vw, 260px);
	background: #222;
	border-radius: 18px;
	overflow: hidden;
}
.marquee-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------- Team Slider --------- */
.team {
	position: relative;
}
.team .team-swiper {
	position: relative;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.02),
		rgba(255, 255, 255, 0)
	);
	border: 1px solid var(--line);
	border-radius: 24px;
	overflow: hidden;
	padding: 64px 0;
}
.team .overlay-title {
	color: white;
	position: absolute;
	inset: auto 0 auto 50%;
	transform: translateX(-50%) !important;
	bottom: 33%;
	z-index: 999;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 800;
	font-size: clamp(22px, 3.2vw, 42px);
	pointer-events: none;
	text-shadow: 11px 9px 20px #0000006e;
}

.team .swiper-slide {
	display: grid;
	place-items: center;
	padding: 48px 0;
}
.member {
	display: grid;
	place-items: center;
	gap: 16px;
}
.member-img {
	width: 165px;
	height: 219px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.member-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.member-meta {
	text-align: center;
}
.member-name {
	margin: 12px 0 4px 0;
	font-size: 20px;
}
.member-role {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* Custom tall side nav buttons: 60×329, #373737 */
.team .nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 329px;
	background: #9c9c9c;
	border: none;
	border-radius: 16px;
	opacity: 0.85;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 5;
}
html.dark .team .nav img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(3%) saturate(7464%)
		hue-rotate(311deg) brightness(104%) contrast(120%);
}
.team .nav:hover {
	opacity: 1;
}
.team .nav:active {
	transform: translateY(-50%) scale(0.98);
}
.team .nav.prev {
	left: 10px;
}
.team .nav.next {
	right: 10px;
}
.team .nav svg {
	width: 24px;
	height: 24px;
}

/* --------- Stack / Tools --------- */
.stack h3 {
	margin: 0 0 20px 0;
	font-size: clamp(18px, 2.2vw, 24px);
}
.stack-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
}
.stack-item {
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}
@media (min-width: 700px) {
	.stack-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* --------- Footer-ish spacing --------- */

.member-img {
	position: relative;
	will-change: transform;
	transition: transform 0.2s ease;
}
.member-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}
/* Responsiveness tweaks */
@media (max-width: 520px) {
	.team .nav {
		height: 240px;
		border-radius: 12px;
	}
	.member-img {
		width: 140px;
		height: 190px;
	}
}
/* Initial states */
.member-img,
.member-name,
.member-role,
.overlay-title {
	opacity: 0;
	transform: translateY(70px);
	transition: opacity 1s ease, transform 1s ease;
}

.swiper-slide-active .member-img {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.5s;
}

.swiper-slide-active .member-name {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1s;
}

.swiper-slide-active .member-role {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1.5s;
}

/* Member social icons with staggered delays */

html.dark .member-social-link img {
	filter: invert(0);
}
.member-social {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
	margin-top: 15px;
}

.member-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease;
}

.member-social-link img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(var(--icon-invert, 0));
	transition: transform 0.3s ease;
}

.member-social-link:hover {
	transform: translateY(0) scale(1.1);
	background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.member-social-link:hover img {
	transform: scale(1.1);
}

html.dark .member-social-link:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Staggered delays for each icon when slide is active */
.swiper-slide-active .member-social-link:nth-child(1) {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: 1.7s;
}

.swiper-slide-active .member-social-link:nth-child(2) {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: 1.9s;
}

.swiper-slide-active .member-social-link:nth-child(3) {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: 2.1s;
}

.swiper-slide-active .overlay-title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 1.8s;
}

/* Profile Cards Styles */
.profile-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.profile-card {
	position: relative;
	overflow: hidden;
}

.profile-card-inner {
	background: #ffffff;
	border: 1px solid var(--line, #e0e0e0);
	border-radius: 24px;
	padding: 0;
	position: relative;
	overflow: hidden;
	min-height: 500px;
	display: flex;
	flex-direction: column;
}

.profile-img-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.profile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: center center;
}

.profile-img-border {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-radius: 50%;
	border: 3px solid transparent;
	opacity: 0;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

.profile-content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	opacity: 0;
	/*padding-top: calc(2rem + 28px);*/
	position: relative;
	z-index: 0;
	align-items: center;
	justify-content: center;
}

.profile-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--text-primary, #000);
	opacity: 0;
	transform: translateY(20px);
}

.profile-experience {
	font-size: 0.95rem;
	color: #000;
	margin: 0;
	opacity: 0;
	transform: translateY(20px);
}

.profile-abilities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.5rem 0;
	justify-content: center;
}

.ability-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--bg-secondary, #f5f5f5);
	border: 1px solid var(--line, #e0e0e0);
	border-radius: 50px;
	font-size: 0.85rem;
	color: var(--text-primary, #000);
	opacity: 0;
	transform: translateY(10px) scale(0.9);
}

.ability-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.profile-summary {
	font-size: 0.9rem;
	color: var(--text-secondary, #666);
	line-height: 1.6;
	margin: 0;
	opacity: 0;
	transform: translateY(20px);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.profile-social {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;
	margin-top: 0.5rem;
}

.profile-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bg-secondary, #f5f5f5);
	border: 1px solid var(--line, #e0e0e0);
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(10px) scale(0.8);
}

.profile-social-link img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(var(--icon-invert, 0));
	transition: transform 0.3s ease;
}

.profile-social-link:hover {
	transform: translateY(0) scale(1.1);
	background-color: rgb(0 0 0);
	border-color: var(--accent, #6c63ff);
}

.profile-social-link:hover img {
	transform: scale(1.1);
	filter: invert(0);
}

/* Dark mode styles for profile cards */
html.dark .profile-card-inner {
	background: #505050;
	border-color: #ffffff6b;
}

html.dark .profile-name {
	color: var(--text-primary, #fff);
}

html.dark .profile-experience {
	color: var(--muted, #999);
}

html.dark .ability-pill {
	background: #ffffff;
	border-color: var(--line, #333);
	color: #000;
}

html.dark .profile-summary {
	color: var(--text-secondary, #ccc);
}

html.dark .profile-social-link {
	background: #ffffff;
	border-color: var(--line, #333);
}

html.dark .profile-social-link img {
	filter: invert(1);
}

html.dark .profile-social-link:hover {
	background-color: rgb(0, 0, 0);
}
html.dark .profile-social-link:hover img {
	filter: invert(0);
}
/* Responsive styles */
@media (max-width: 768px) {
	.profile-cards-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.profile-card-inner {
		min-height: 450px;
	}

	.profile-content {
		padding: 1.5rem;
		/* padding-top: calc(1.5rem + 90px); */
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.profile-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.profile-card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 500px;
		margin: 0 auto;
	}
}

@media (min-width: 1025px) {
	.profile-cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* about us page end */

/* About Content Section with Parallax */
.about-content-section {
	padding: clamp(4rem, 8vw, 8rem) 0;
	position: relative;
	overflow: hidden;
}

.about-content-section .container {
	max-width: var(--container-w, 1200px);
	margin: 0 auto;
	padding: 0 var(--side-pad, 20px);
}

.about-content-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	margin-bottom: clamp(6rem, 12vw, 12rem);
	position: relative;
}

.about-content-item:last-child {
	margin-bottom: 0;
}

.about-content-text {
	position: relative;
	z-index: 2;
}

.about-content-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--fg, #0a0a0a);
	line-height: 1.3;
}

html.dark .about-content-item h1 span,
html.dark .about-content-item h2 span,
html.dark .about-content-item h3 span {
	color: var(--text-primary, #fff) !important;
}
html.dark .about-content-item p span {
	color: var(--text-secondary, #b3b3b3) !important;
}
.about-content-description {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.8;
	color: var(--muted, #6b7280);
	max-width: 600px;
}

html.dark .about-content-section h1,
html.dark .about-content-section p {
	color: var(--text-secondary, #b3b3b3);
}

/* Dark mode styles for about content section */
html.dark .about-content-section {
	background: var(--bg, #0f0f0f);
}

html.dark .about-content-item {
	background: var(--card-bg, #1e1e1e);
	border: 1px solid var(--border, #333);
	border-radius: 24px;
	padding: clamp(2rem, 4vw, 3rem);
	margin-bottom: clamp(4rem, 8vw, 8rem);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	gap: clamp(2.5rem, 5vw, 4rem); /* Adjust gap when padding is added */
}

html.dark .about-content-item:hover {
	border-color: var(--accent, #9a47ff);
	box-shadow: 0 8px 30px rgba(154, 71, 255, 0.2);
}

html.dark .about-content-image {
	border: 1px solid var(--border, #333);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	background: var(--bg-secondary, #1a1a1a);
}
/* Light mode card styling for about content items */
html:not(.dark) .about-content-item {
	background: var(--card-bg, #ffffff);
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 24px;
	padding: clamp(2rem, 4vw, 3rem);
	margin-bottom: clamp(4rem, 8vw, 8rem);
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	transition: border-color 0.25s ease, box-shadow 0.25s ease,
		transform 0.25s ease, background-color 0.25s ease;
	gap: clamp(2.5rem, 5vw, 4rem);
}

html:not(.dark) .about-content-item:hover {
	border-color: var(--accent, #9a47ff);
	box-shadow: 0 24px 60px rgba(148, 163, 184, 0.35);
	transform: translateY(-4px);
	background-color: #f9fafb;
}
html.dark .about-content-image img {
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

html.dark .about-content-item:hover .about-content-image img {
	opacity: 1;
}

html.dark .about-content-text {
	color: var(--text-primary, #fff);
}

.about-content-image {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	will-change: transform;
}

.about-content-image img {
	width: 100%;
	height: auto;
	max-height: 400px;
	display: block;
	border-radius: 24px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.about-content-image img {
		max-height: 300px;
	}
}

/* Alternating layout for RTL */
.about-content-item:nth-child(even) {
	direction: ltr;
}

.about-content-item:nth-child(even) .about-content-text {
	direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
	.about-content-section {
		padding: clamp(3rem, 6vw, 5rem) 0;
	}

	.about-content-item {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		margin-bottom: 5rem;
		overflow: visible;
	}

	html.dark .about-content-item {
		padding: 2rem;
		margin-bottom: 4rem;
	}

	.about-content-item:last-child {
		margin-bottom: 0;
	}

	.about-content-item:nth-child(even) {
		direction: rtl;
	}

	.about-content-item:nth-child(even) .about-content-text {
		direction: rtl;
	}

	.about-content-image {
		order: -1;
		width: 100%;
		margin-bottom: 0;
		overflow: hidden;
		position: relative;
		z-index: 1;
		max-width: 100%;
		transform: translateZ(0); /* Force hardware acceleration */
	}

	.about-content-image img {
		max-width: 100%;
		width: 100%;
		display: block;
	}

	.about-content-text {
		position: relative;
		z-index: 2;
		padding: 0;
		margin-top: 0;
		width: 100%;
		transform: translateZ(0); /* Force hardware acceleration */
		background: transparent;
	}

	.about-content-title {
		margin-bottom: 1rem;
	}

	.about-content-description {
		max-width: 100%;
	}
}

/* About Content Section end */

/* contact us page start */

.button-custom-contact {
	font-size: 15px;
	background: royalblue;
	color: white;
	padding: 0.7em 1em;
	padding-left: 0.9em;
	display: flex;
	align-items: center;
	border: none;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.2s;
}

.button-custom-contact span {
	display: block;
	margin-left: 0.3em;
	transition: all 0.3s ease-in-out;
}

.button-custom-contact svg {
	display: block;
	transform-origin: center center;
	transition: transform 0.3s ease-in-out;
}

.button-custom-contact:hover .svg-wrapper {
	animation: fly-1 0.6s ease-in-out infinite alternate;
}

.button-custom-contact:hover svg {
	transform: translateX(0.5em) rotate(45deg) scale(1.1);
}

.button-custom-contact:hover span {
	transform: translateX(8em);
}

.button-custom-contact:active {
	transform: scale(0.95);
}

@keyframes fly-1 {
	from {
		transform: translateY(0.1em);
	}

	to {
		transform: translateY(-0.1em);
	}
}

/* accordion start */
.contact-section {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	min-height: 100vh;
	padding: 12px;
	align-items: center;
}

.contact-left {
	/* flex: 1 1 20%; */
	padding: 1rem;
	/* margin: auto; */
}
.big-title {
	font-size: 4.5rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 2rem;
	color: #000000;
}

.contact-list {
	list-style: none;
	margin-bottom: 2rem;
	color: #000000;
}

.contact-list li {
	margin-bottom: 1rem;
	padding-right: 2rem;
	position: relative;
	font-size: 1rem;
}

.contact-list li::before {
	content: "✔";
	color: #6c63ff;
	position: absolute;
	right: 0;
	font-size: 1.2rem;
}

.direct-contact {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #000000;
}

.direct-contact img {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff;
	overflow: hidden;
	transition: all 0.3s ease;
}
.direct-contact img:hover {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #6c63ff;
	transform: scale(1.1);
}
.label {
	font-weight: bold;
	font-size: 0.9rem;
}

.email {
	font-size: 0.95rem;
	direction: ltr;
	text-align: end;
}

.contact-right {
	background-image: url("../media/images/Frame.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 600px;
	min-height: 500px;
	position: relative;
	padding: 1rem;
	box-sizing: border-box;
}
html.dark .contact-right {
	background-image: url(../media/images/Framedark.png);
}
form {
	width: 100%;
	max-width: 450px;
	padding: 2.5rem 2rem;
	box-sizing: border-box;
}

.form-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

input,
select,
textarea {
	flex: 1;
	padding: 0.8rem;
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	color: black;
	font-size: 0.95rem;
}
@media (max-width: 552px) {
	input,
	select,
	textarea {
		padding: 0.7rem 0.6rem;
		font-size: 0.9rem;
	}
}

textarea {
	width: 100%;
	resize: none;
	height: 100px;
	margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #9a47ff;
}

.form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.attachment {
	font-size: 1.5rem;
	cursor: pointer;
}

.attachment {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	background: #f6f6f8;
	border-radius: 50px;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	flex-direction: row-reverse;
}

.attachment img {
	width: 20px;
	height: 20px;
	transition: transform 0.4s ease;
}

.file-info {
	font-size: 0.85rem;
	color: #111;
	margin: 0px 8px;
}
html.dark .file-info {
	color: #e4e4e4;
}
html.dark .attachment img {
	filter: brightness(0) saturate(100%) invert(64%) sepia(0%) saturate(3713%)
		hue-rotate(141deg) brightness(126%) contrast(80%);
}
.attachment:hover img {
	transform: scale(1.15) rotate(-8deg);
}

.attachment input {
	display: none;
}
/* 
 */
.policy {
	font-size: 0.8rem;
	color: #555;
	flex: 1;
}
html.dark .policy {
	color: #bebebe;
}
.policy a {
	color: #6c63ff;
	text-decoration: none;
}
html.dark .policy a {
	color: #efe1ff;
	text-decoration: none;
}
.button-custom-contact {
	background: #6c63ff;
	color: white;
	padding: 0.8rem 1.5rem;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: bold;
	gap: 8px;
	display: flex;
	align-items: center;
}

.contact-list {
	list-style: none;
	padding: 0;
}

.contact-list li {
	opacity: 0;
	transform: translateY(20px);
	margin-bottom: 10px;
	position: relative;
	animation: fadeUp 0.5s forwards;
}

/* stagger each li using nth-child */
.contact-list li:nth-child(1) {
	animation-delay: 0.2s;
}
.contact-list li:nth-child(2) {
	animation-delay: 0.4s;
}
.contact-list li:nth-child(3) {
	animation-delay: 0.6s;
}

/* ::before for custom bullet */
.contact-list li::before {
	content: "•";
	color: #007bff;
	position: absolute;
	left: -20px;
	opacity: 0;
	transform: scale(0);
	animation: bulletAppear 0.3s forwards;
}

/* sync ::before with li using same delay */
.contact-list li:nth-child(1)::before {
	animation-delay: 0.2s;
}
.contact-list li:nth-child(2)::before {
	animation-delay: 0.4s;
}
.contact-list li:nth-child(3)::before {
	animation-delay: 0.6s;
}

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bulletAppear {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Responsive */
@media (max-width: 900px) {
	.contact-section {
		flex-direction: column;
	}
	.big-title {
		font-size: 3rem;
	}
	.form-row {
		flex-direction: row;
	}
	.contact-map {
		margin-top: 2rem;
		padding: 0;
	}
	.contact-map iframe {
		height: 350px;
		border-radius: 0;
	}
	.contact-right {
		width: 100%;
		max-width: 100%;
		min-height: 550px;
		padding: 0.75rem;
	}
	.contact-right form {
		max-width: 500px;
		padding: 2rem 1.5rem;
	}
}
@media (max-width: 552px) {
	.form-row {
		flex-direction: column;
		gap: 0.75rem;
		margin-bottom: 0.75rem;
	}
	.contact-socials {
		gap: 0.75rem;
	}
	.contact-socials .social-link {
		width: 36px;
		height: 36px;
	}
	.contact-socials .social-link img {
		width: 18px;
		height: 18px;
	}
	.contact-map iframe {
		height: 300px;
	}
	textarea {
		height: 80px;
		margin-bottom: 0.75rem;
	}
	input,
	select,
	textarea {
		padding: 0.7rem 0.6rem;
		font-size: 0.9rem;
	}
	.form-actions {
		gap: 0.75rem;
		margin-top: 0.25rem;
	}
}
@media (max-width: 450px) {
	.contact-right {
		background-image: url(../media/images/framemobile.svg);
		background-position: center;
		background-size: cover;
		min-height: 600px;
		padding: 0.5rem;
	}
	html.dark .contact-right {
		background-image: url(../media/images/framemobiledark.svg);
	}
	.contact-right form {
		padding: 1.5rem 1rem;
		max-width: 100%;
	}
}
.contact-right form {
	padding: 2.5rem 2rem;
	width: 100%;
	max-width: 450px;
	box-sizing: border-box;
}
/* layout for your row */
.form-actions {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 20px;
}
/* Contact Info Styles */
.contact-info {
	margin-top: 2rem;
}
.contact-info-text {
	font-size: 1.2rem;
	color: #000000;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(30px);
	animation: contactInfoFadeIn 0.6s ease-out forwards;
}
.contact-info p {
	margin-bottom: 1.5rem;
	font-size: 1rem;
	color: #000000;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(30px);
	animation: contactInfoFadeIn 0.6s ease-out forwards;
}

.contact-info .address {
	animation-delay: 0.1s;
}

.contact-info .phone {
	animation-delay: 0.2s;
}

.contact-info .email {
	animation-delay: 0.3s;
}

@keyframes contactInfoFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html.dark .contact-info p {
	color: #ffffff;
}

.contact-info p strong {
	font-weight: 600;
	margin-left: 0.5rem;
}

.contact-info .address,
.contact-info .phone,
.contact-info .email {
	color: #000000;
}

html.dark .contact-info .address,
html.dark .contact-info .phone,
html.dark .contact-info .email {
	color: #ffffff;
}

.contact-info a {
	color: #6c63ff;
	text-decoration: none;
	transition: color 0.3s ease;
}

html.dark .contact-info a {
	color: #ffffff;
	background: #9a47ff;
	padding: 8px 9px;
	border-radius: 50px;
}

.contact-info a:hover {
	color: #5a52cc;
}

html.dark .contact-info a:hover {
	color: #000000;
}
@media (max-width: 768px) {
	.email {
		text-align: unset;
	}
	.contact-info {
		text-align: center !important;
	}
}
/* Contact Social Icons */
.contact-socials {
	display: flex;
	gap: 1rem;
	justify-content: flex-start;
	margin: 1.5rem 0;
	flex-wrap: wrap;
	align-items: center;
}
@media (max-width: 768px) {
	.contact-socials {
		justify-content: center;
	}
}
.contact-socials .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f6f6f8;
	transition: all 0.3s ease;
	text-decoration: none;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	animation: socialLinkFadeIn 0.5s ease-out forwards;
}

.contact-socials .social-link:nth-child(1) {
	animation-delay: 0.5s;
}

.contact-socials .social-link:nth-child(2) {
	animation-delay: 0.6s;
}

.contact-socials .social-link:nth-child(3) {
	animation-delay: 0.7s;
}

.contact-socials .social-link:nth-child(4) {
	animation-delay: 0.8s;
}

.contact-socials .social-link:nth-child(5) {
	animation-delay: 0.9s;
}

@keyframes socialLinkFadeIn {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

html.dark .contact-socials .social-link {
	background: #2a2a2a;
	border: 1px solid #ffffff29;
}

.contact-socials .social-link:hover {
	background: #6c63ff;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

html.dark .contact-socials .social-link:hover {
	background: #9a47ff;
	box-shadow: 0 4px 12px rgba(154, 71, 255, 0.3);
}

.contact-socials .social-link img {
	width: 20px;
	height: 20px;
	filter: brightness(0) saturate(100%);
	transition: filter 0.3s ease;
}

html.dark .contact-socials .social-link img {
	filter: brightness(0) saturate(100%) invert(1);
}

.contact-socials .social-link:hover img {
	filter: brightness(0) saturate(100%) invert(1);
}

/* Contact Map */
.contact-map {
	width: 100%;
	margin-top: 4rem;
	padding: 0 12px;
}

.contact-map iframe {
	width: 100%;
	height: 450px;
	border-radius: 12px;
	border: none;
}

/* Full width phone input when not in form-row */
.contact-right form > input[type="tel"] {
	width: 100%;
	margin-bottom: 1rem;
	display: block;
}

html.dark .contact-right input,
html.dark .contact-right select,
html.dark.contact-right textarea {
	background: none;
	border-color: #ffffff78;
	color: #000000 !important;
}
html.dark .contact-right input::placeholder {
	color: rgba(255, 255, 255, 0.5);
	opacity: 1; /* Ensure full opacity in Firefox */
}
html.dark .contact-right textarea {
	background-color: unset;
}
html.dark .contact-right textarea::placeholder {
	color: rgba(255, 255, 255, 0.5) !important;
}
/* ATTACHMENT */
.attachment {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 9999px;
	padding: 6px; /* small tap target even before hover */
	transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
	cursor: pointer;
	overflow: hidden; /* hide the bouncing text when offscreen */
	direction: ltr; /* keeps icon on the left even on RTL pages */
}

.attachment img {
	width: 24px;
	height: 24px;
	display: block;
}

/* hide file input but keep it clickable */
.attachment input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.wrap {
	max-width: 880px;
	margin: clamp(16px, 6vw, 64px) auto;
	padding: 0 clamp(12px, 3vw, 24px);
}

/* ===== Accordion ===== */
.contact-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 20px;
}
.accordion {
	display: grid;
	gap: 12px;
}
.acc-item {
	position: relative;
	border-top: 1px solid rgba(0, 0, 0, 0.8);
	box-shadow: var(--shadow);
	overflow: hidden;
	isolation: isolate;
}

.acc-item.is-open::before {
	transform: scaleY(1);
}

.acc-item:hover::after,
.acc-item:has(.acc-trigger:focus-visible)::after {
	clip-path: circle(
		120% at calc(100% - (var(--gutter) + var(--icon-size) / 2)) 50%
	);
}

.acc-trigger {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr var(--icon-size);
	align-items: center;
	gap: 12px;
	padding: 18px var(--gutter);
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: inherit;
	font: inherit;
	color: inherit;
	z-index: 1;
	outline: none;
}

.acc-trigger::before {
	top: 8px;
}
.acc-trigger::after {
	bottom: 8px;
}

.acc-title {
	font-weight: 700;
	font-size: clamp(16px, 2.2vw, 18px);
	letter-spacing: -0.2px;
	position: relative;
	padding-inline-end: 8px;
	color: rgb(0, 0, 0);
}

.acc-icon {
	width: var(--icon-size);
	height: var(--icon-size);
	border-radius: 1000px;
	position: relative;
	justify-self: end;
	display: grid;
	place-items: center;
	overflow: visible;
	z-index: 1;
}

.acc-icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		circle at center,
		var(--accent) 0%,
		var(--accent) 30%,
		transparent 31%
	);
	transform: scale(0);
	transition: transform 420ms var(--curve);
	z-index: -1;
}
.acc-item:hover .acc-icon::after,
.acc-trigger:focus-visible .acc-icon::after {
	transform: scale(2.6);
}

.acc-icon .bar {
	position: absolute;
	width: 18px;
	height: 2px;
	background: #1d2035;
	border-radius: 2px;
	transition: transform var(--speed) var(--curve),
		opacity var(--speed) var(--curve);
}
.acc-icon .bar.v {
	transform: rotate(90deg);
}
.acc-item.is-open .acc-icon .bar.v {
	transform: rotate(90deg) scaleX(0);
	opacity: 0;
}

.acc-panel {
	overflow: hidden;
	height: 0;
	transition: height calc(var(--speed) + 80ms) var(--curve);
	will-change: height;
	z-index: 1;
}
.acc-panel-inner {
	padding: 0 var(--gutter) 18px var(--gutter);
	font-size: 15px;
	color: var(--muted);
}

.acc-item.is-open .acc-trigger {
	background: transparent;
}
.acc-item.is-open .acc-title {
	color: #000000;
}

@media (max-width: 600px) {
	.acc-trigger {
		padding: 16px var(--gutter);
	}
	.acc-panel-inner {
		padding: 0 var(--gutter) 14px;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e0f17;
		--text: #eef0ff;
		--muted: #000000;
		--item-bg: #171828;
		--shadow: none;
		--accent-weak: rgba(107, 123, 255, 0.18);
	}
	.acc-icon .bar {
		background: var(--item-bg);
	}
}

/* accordion end */

/* contact us page end */

/* archive page start */
.blogs-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 30px 0;
}
.blogs-pagination a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: all 0.3s ease;
}
.blogs-pagination a:hover {
	background: #f5f5f5;
	transform: translateY(-2px);
}
.blogs-pagination a.blogs-active {
	background: #333;
	color: #fff;
}

/* Blog Card */
.blogs-card {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #000;
	color: #fff;
	height: 100%;
	transition: transform 0.3s ease;
}
.blogs-card:hover {
	transform: translateY(-6px);
}
.blogs-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.blogs-card-content {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 20px;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.7) 100%
	);
}
.blogs-card-content h5 {
	font-size: 1.2rem;
	font-weight: 600;
}
.blogs-card-content p {
	font-size: 0.9rem;
	margin-top: 6px;
}
.blogs-title {
	font-size: 2.5rem;
	font-weight: bold;
}
.blogs-subtitle {
	color: #666;
}
html.dark .blogs-subtitle {
	color: #bcbcbc;
}
.blog-card {
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-img-wrapper {
	position: relative;
	overflow: hidden;
}
.blog-img-wrapper img {
	transition: transform 0.5s ease;
	width: 100%;
	height: auto;
}
.blog-card:hover .blog-img-wrapper img {
	transform: scale(1.1);
}
.blog-category {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 5px 12px;
	border-radius: 30px;
	font-size: 0.85rem;
}
.blog-meta small {
	color: #777;
}
.blog-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-top: 8px;
}
.blog-desc {
	color: #555;
	font-size: 0.9rem;
	margin-top: 5px;
}
.blog-author img {
	width: 35px;
	height: 35px;
}
.blogs-slider-container {
	width: 100%;
	height: 100vh;
	position: relative;
	top: -93px;
	display: none;
}
.blogs-slider-container .swiper {
	padding: unset;
}
.blogs-swiper {
	width: 100%;
	height: 100%;
}

.blogs-slide {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Background image */
.blogs-slide-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}
.blogs-section {
	padding: 15px;
}
/* Overlay gradient */
.blogs-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.3) 100%
	);
	z-index: 2;
}

/* Overlay content container */
.blogs-slide-overlay {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: 1fr 300px;
	align-items: flex-end;
	justify-content: space-between;
	height: 100%;
	padding: 3rem;
	gap: 2rem;
}

/* Column 1 (Text + dots) */
.blogs-slide-text {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	max-width: 700px;
}

.blogs-slide-label {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: 0.4rem 1rem;
	font-size: 0.9rem;
	margin-bottom: 1rem;
	backdrop-filter: blur(4px);
	align-self: flex-start;
	color: white;
}

.blogs-slide-title {
	font-size: 2.5rem;
	margin: 0 0 1rem;
	font-weight: bold;
	color: white;
}

.blogs-slide-description {
	font-size: 1.1rem;
	line-height: 1.8rem;
	color: #f0f0f0;
	margin-bottom: 2rem;
}

/* Column 2 (Author) */
.blogs-slide-author {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 15px;
}
.blogs-slide-author-name {
	font-size: 1.2rem;
	font-weight: bold;
	color: white;
}
.blogs-slide-author-img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
}

.blogs-slide-author-info {
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.blogs-slide-author-meta {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
}

.blogs-slide-meta {
	font-size: 0.9rem;
	color: #ddd;
}

/* Pagination (inside column 1) */
.blogs-slide-pagination {
	margin-top: 2rem;
}

.blogs-slide-pagination .swiper-pagination {
	position: static; /* put inside col */
	display: flex;
	justify-content: flex-start;
	gap: 10px;
}

.blogs-slide-pagination .swiper-pagination-bullet {
	width: 14px;
	height: 14px;
	border: 2px solid white;
	background: transparent;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.blogs-slide-pagination .swiper-pagination-bullet-active {
	background: white;
	transform: scale(1.3);
	animation: gooey-pulse 0.6s ease;
}

@keyframes gooey-pulse {
	0% {
		transform: scale(0.8);
		filter: blur(4px);
	}
	50% {
		transform: scale(1.5);
		filter: blur(2px);
	}
	100% {
		transform: scale(1.3);
		filter: blur(0);
	}
}

/* Responsive */
@media (max-width: 900px) {
	.blogs-slide-overlay {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.blogs-slide-text {
		align-items: center;
	}
	.blogs-slide-label {
		align-self: center;
	}
	.blogs-slide-pagination .swiper-pagination {
		justify-content: center;
	}
	.blogs-slide-author {
		margin-top: 2rem;
	}
}
/* Controls */
.blogs-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	flex-direction: column-reverse;
	align-items: flex-start;
	margin-bottom: 20px;
	gap: 15px;
	padding: 0px 30px;
}

/* Dropdown */
.dropdown {
	position: relative;
	display: inline-block;
}
.dropdown button {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 0.9rem;
}
.dropdown-content {
	display: none;
	position: absolute;
	right: 0;
	top: 110%;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	min-width: 160px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 1;
}
.dropdown-content a {
	display: block;
	padding: 10px;
	font-size: 0.9rem;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
}
.dropdown-content a:hover {
	background: #f5f5f5;
}
.dropdown.show .dropdown-content {
	display: block;
}

/* Categories */
.blogs-categories {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: space-between;
}
.blogs-categories button {
	border: 1px solid #ccc;
	background: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.3s ease;
}
.blogs-categories button:hover,
.blogs-categories button.active {
	background: #333;
	color: #fff;
	border-color: #333;
}
html.dark .blogs-categories button {
	color: white;
	border: 1px solid #ccc;
	background: #282828;
}
html.dark .blogs-categories button:hover,
.blogs-categories button.active {
	color: #282828 !important;
	border: 1px solid #ccc !important;
	background: #ffffff !important;
}
/* Blog Grid */
.blogs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.blogs-card {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #000;
	color: #fff;
	height: 320px;
	display: flex;
	align-items: flex-end;
	transition: transform 0.3s ease;
}
.blogs-card:hover {
	transform: translateY(-6px);
}
.blogs-card img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.blogs-card-content {
	position: relative;
	z-index: 1;
	padding: 16px;
	width: 100%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.7) 100%
	);
}
.blogs-card-content h5 {
	font-size: 1.1rem;
	margin: 0;
}
.blogs-card-content p {
	font-size: 0.85rem;
	margin: 6px 0 0;
}

/* Label */
.blogs-label {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	padding: 4px 12px;
	font-size: 0.75rem;
	border-radius: 20px;
	font-weight: 500;
	z-index: 1;
}

/* Pagination */
.blogs-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 30px 0;
}
.blogs-pagination a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}
.blogs-pagination a:hover {
	background: #f5f5f5;
	transform: translateY(-2px);
}
.blogs-pagination a.active {
	background: #333;
	color: #fff;
}
.blog-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row-reverse;
}
.project-title.blog-title {
	font-size: 20px;
}
.blog-description {
	font-size: 18px;
	margin-top: 8px;
	color: #3333338a;
}
.project-info.blog-info {
	background: white;
    padding: 16px 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}
html.dark .project-info.blog-info {
	padding: 16px 10px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
}
.blog-meta-main {
	background: black;
	padding: 5px 10px;
	border-radius: 100px;
	color: white;
	transition: all 0.3s ease-in-out;
}
.project-card:hover .blog-meta-main {
	filter: invert(1);
}
.project-card .blog-text {
	position: relative;
	height: 4.5em; /* adjust to match one line height */
	overflow: hidden;
}

.blog-title,
.blog-description {
	font-size: 16px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
html.dark .blog-title,
html.dark .blog-description {
	font-size: 16px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.blog-title {
	opacity: 1;
	transform: translateY(0);
}

.blog-description {
	opacity: 0;
	transform: translateY(100%);
}

/* On hover, swap */
.project-card:hover .blog-title {
	opacity: 0;
	transform: translateY(-100%);
}

.project-card:hover .blog-description {
	opacity: 1;
	transform: translateY(0);
}

.blog-description {
	display: -webkit-box;
	-webkit-line-clamp: 2; /* change 2 → 3 for 3 lines */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* archive page end */

/* blog post start */
/* ---------- Breadcrumb (مینیمال و خطی) ---------- */
.bp-breadcrumb {
	max-width: var(--bp-maxw);
	margin: 0 auto;
	padding: 14px 20px;
	color: var(--bp-muted);
	font-size: 0.92rem;
}
.bp-breadcrumb a {
	text-decoration: none;
	color: #444;
	transition: all 0.2s ease;
}
.bp-breadcrumb .bp-sep {
	display: inline-block;
	width: 44px;
	height: 1px;
	background: linear-gradient(90deg, #cfcfd6, #00000087);
	margin: 0 10px -3px 10px;
	position: relative;
	top: -5px;
}
.bp-breadcrumb a:hover {
	color: #000;
	font-weight: 500;
}
html.dark .bp-breadcrumb a {
	color: #bcbcbc;
}
html.dark .bp-breadcrumb a:hover {
	color: white;
}
html.dark .current-page {
	color: #e5e5e5;
	font-weight: bold;
}
/* ---------- Header / عنوان + متا + اسکرول ---------- */
.bp-header {
	max-width: var(--bp-maxw);
	margin: 0 auto;
	padding: 48px 20px 32px;
	text-align: center;
	border-bottom: 1px solid #00000033;
	border-bottom-right-radius: 60px;
	border-bottom-left-radius: 60px;
	margin-bottom: 21px;
}
html.dark .bp-header {
	border-bottom: 1px solid #ffffff33;
}
.bp-title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.3px;
}
.bp-title-underline {
	width: 110px;
	height: 4px;
	margin: 14px auto 12px;
	border-radius: 999px;
	background: black;
}
html.dark .bp-title-underline {
	background: white;
}
.bp-meta {
	color: var(--bp-muted);
	font-size: 0.95rem;
}
.bp-scroll {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #111;
	text-decoration: none;
	animation: bp-bounce 2s infinite;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column-reverse;
}
.bp-scroll .bp-arrow {
	width: 22px;
	height: 22px;
	display: inline-block;
	transition: all 0.2s ease;
}
.bp-scroll:hover .bp-arrow {
	border: 0.2px solid #00000033;
	border-radius: 100px;
	background: #ffffff;
	transform: scale(1.2);
}
html.dark .bp-scroll span {
	color: white;
}
@keyframes bp-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(8px);
	}
}
html.dark .bp-scroll svg {
	filter: invert(1);
	border: 1px solid rgb(0, 0, 0);
	border-radius: 100px;
}
/* ---------- Layout (۳ ستون دسکتاپ) ---------- */
.bp-wrap {
	max-width: var(--bp-maxw);
	margin: 0 auto;
	padding: 0 20px 80px;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) 294px;
	gap: var(--bp-gap);
}

/* ---------- ستون اشتراک (چسبان) ---------- */
.bp-share-col {
	position: relative;
}
.bp-share-stack {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
}
.bp-share-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.78rem;
	color: var(--bp-muted);
	letter-spacing: 0.15em;
}
html.dark .bp-share-label {
	color: #adadad;
}
/* دکمه دایره‌ای با دو آیکن و پرشدن دایره‌ای از مرکز */
.bp-share-btn {
	--bg: #111; /* رنگ پرشدن هنگام هاور (برای هر شبکه override می‌کنیم) */
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--bp-line);
	background: #fff;
	color: #222;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	outline: none;
}
.bp-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: transparent;
}
/* پس‌زمینه‌ی دایره‌ای که از مرکز گسترش پیدا می‌کنه */
.bp-share-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--bg);
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 0;
}
.bp-share-btn:hover::after {
	transform: scale(1);
}

/* ظرف آیکن‌ها */
.bp-icon-wrap {
	position: relative;
	width: 22px;
	height: 22px;
	z-index: 1;
}
.bp-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) translateX(0);
	transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
	width: 22px;
	height: 22px;
	fill: currentColor;
}
/* آیکن جایگزین، ابتدا بیرونِ سمت چپ */
.bp-icon--alt {
	transform: translate(-50%, -50%) translateX(-168%);
}
/* روی هاور: اصلی میره راستِ بیرون، جایگزین میاد مرکز */
.bp-share-btn:hover .bp-icon--main {
	transform: translate(-50%, -50%) translateX(140%);
}
.bp-share-btn:hover .bp-icon--alt {
	transform: translate(-50%, -50%) translateX(0);
	filter: brightness(2) saturate(100%);
}
/* رنگ آیکن‌ها روی هاور سفید می‌شن چون پس‌زمینه رنگی میشه */
.bp-share-btn:hover {
	color: #fff;
}

/* تم‌های هر شبکه */
.bp-li {
	--bg: var(--bp-li);
}
.bp-fb {
	--bg: var(--bp-fb);
}
.bp-x {
	--bg: var(--bp-x);
}
.bp-copy {
	--bg: var(--bp-copy);
}

/* حالت کپی موفق با تیک ترسیمی */
.bp-check {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}
.bp-check svg {
	width: 24px;
	height: 24px;
}
.bp-check path {
	stroke: #fff;
	stroke-width: 3;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	transition: stroke-dashoffset 0.55s ease;
}
.bp-share-btn.is-copied::after {
	transform: scale(1);
} /* پس‌زمینه سبز می‌ماند لحظه‌ای */
.bp-share-btn.is-copied .bp-check {
	opacity: 1;
}
.bp-share-btn.is-copied .bp-check path {
	stroke-dashoffset: 0;
}
.bp-share-btn.is-copied .bp-icon-wrap {
	opacity: 0;
	transition: opacity 0.2s;
}

/* ---------- محتوای مقاله ---------- */
.bp-content {
	min-width: 0;
}
.bp-hero {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 16/7;
	background: #ddd;
	margin-bottom: 22px;
}
.bp-content h2 {
	font-size: clamp(20px, 2.4vw, 28px);
	margin: 34px 0 12px;
}
.bp-content h3 {
	font-size: clamp(18px, 2vw, 22px);
	margin: 26px 0 10px;
	color: #2a2a2a;
}
.bp-content p {
	margin: 12px 0;
	color: #353535;
}
.bp-content figure {
	margin: 18px 0;
}
.bp-content figcaption {
	font-size: 0.85rem;
	color: var(--bp-muted);
	margin-top: 6px;
}

/* اسکرول نرم برای لنگرها */
html {
	scroll-behavior: smooth;
}

/* ---------- ستون TOC + نوار مطالعه + دکمه عضویت ---------- */
.bp-side {
	position: relative;
}
.bp-side-box {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 0.0625rem solid #0000004d;
	border-radius: 1.5rem;
	padding: 16px;
}
.bp-toc-title {
	font-size: 1rem;
	font-weight: 700;
}
.bp-toc a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: #2a2a2a;
	border: 1px dashed transparent;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.bp-toc a:hover {
	background: #fff;
	border-color: #dcdce5;
}
.bp-toc a.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}

.bp-readbar {
	height: 6px;
	background: #eaeaf1;
	border-radius: 999px;
	overflow: hidden;
}
.bp-readbar > span {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #111, #8b8b95);
	transition: width 0.15s linear;
}

.bp-subscribe {
	--bg: #111;
	position: relative;
	overflow: hidden;
	border: none;
	border-radius: 12px;
	padding: 14px 16px;
	font-weight: 800;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--bp-line);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.bp-subscribe::before {
	content: "";
	position: absolute;
	inset: -30%;
	border-radius: 28px;
	background: var(--bg);
	transform: translate(100%, -100%) rotate(45deg);
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 0;
}
.bp-subscribe:hover::before {
	transform: translate(0, 0) rotate(45deg);
}
.bp-subscribe span,
.bp-subscribe .bp-sub-ico {
	position: relative;
	z-index: 1;
}
.bp-subscribe:hover {
	color: #fff;
	border-color: transparent;
}
/* آیکنِ دکمه عضویت؛ حرکت مورب (بالا راست ↘ پایین چپ) */
.bp-sub-ico .bp-i-main,
.bp-sub-ico .bp-i-alt {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.bp-sub-ico {
	position: relative;
	width: 18px;
	height: 18px;
}
.bp-sub-ico .bp-i-alt {
	transform: translate(calc(-50% + 14px), calc(-50% - 14px));
} /* خارج کادر مورب */
.bp-subscribe:hover .bp-sub-ico .bp-i-main {
	transform: translate(calc(-50% - 14px), calc(-50% + 14px));
} /* به مورب مخالف می‌رود */
.bp-subscribe:hover .bp-sub-ico .bp-i-alt {
	transform: translate(-50%, -50%);
}

/* ---------- پایان مقاله: بلوک ثابت برای همه پست‌ها ---------- */
.bp-end-block {
	margin-top: 40px;
	padding: 22px;
	border: 1px solid var(--bp-line);
	border-radius: 16px;
	background: #fff;
}
.bp-end-block h4 {
	margin: 0 0 10px;
}
.bp-keypoints {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.bp-chip {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f0f0f7;
	font-size: 0.85rem;
	margin: 4px 6px 0 0;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
	.bp-wrap {
		grid-template-columns: 64px 1fr 300px;
	}
}
@media (max-width: 900px) {
	/* در موبایل: اول اشتراک (به صورت ردیفی)، بعد TOC، بعد محتوا؛ نوار مطالعه پنهان */
	.bp-wrap {
		grid-template-columns: 1fr;
	}
	.bp-share-stack {
		position: relative;
		top: auto;
		flex-direction: row;
		justify-content: center;
		gap: 12px;
		margin-bottom: 10px;
	}
	.bp-share-label {
		display: none;
	}
	.bp-side-box {
		position: relative;
		top: auto;
	}
	.bp-readbar {
		display: none;
	}
}
/* Sidebar main box */
.bp-side-box {
	/* overflow: hidden; */
	border-radius: 20px;
	padding: 2rem 1.5rem;
	color: #fff;
}
/* This media query targets screens 768px wide or smaller (typical for mobile) */
@media (max-width: 768px) {
	/* You might want to stack them vertically on mobile */
	.bp-wrap {
		grid-template-columns: 1fr;
	}

	/* Set the display order */
	.bp-side {
		order: 1; /* 🥇 Displays first */
	}

	.bp-content {
		order: 2; /* 🥈 Displays second */
	}

	.bp-share-col {
		order: 3; /* 🥉 Displays last */
	}
	.bp-read-progress,
	.bp-side .container-flair-gsap {
		display: none;
	}
}
/* Background collar effect */
.bp-toc-collar {
	position: relative;
	padding: 1rem 0;
}
.bp-toc-collar-bg {
	background-image: url("../media/shape/test.svg");
	z-index: 1;
	/* background-color: #eeeeee; */
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: contain;
	width: 4.75rem;
	height: 4.75rem;
	position: absolute;
	inset: -1px -2px auto auto;
}
html.dark .bp-toc-collar-bg {
	background-image: url(../media/shape/daarkmodstroke.svg), linear-gradient(45deg, #1e1e1e 0%, #1f1f1f 100%);
}
.bp-toc-collar * {
	position: relative;
	z-index: 1;
}
@media screen and (max-width: 768px) {
	html.dark .bp-toc-collar-bg {
		background-image: url(../media/shape/daarkmodstroke.svg), linear-gradient(45deg, #1e1e1e 52%, #292929 59%);
	}
	
}
@media screen and (max-width: 901px) {
	html.dark .bp-side-box{
		overflow: hidden;
	}
}
/* TOC Title */
.bp-toc-title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	font-weight: 700;
	color: #000000;
}

/* TOC List */
.bp-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bp-toc-item {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.2rem;
	font-size: 0.95rem;
}
.bp-toc-item a {
	text-decoration: none;
	color: #000000c4;
	transition: color 0.3s ease;
}
.bp-toc-item a:hover {
	color: #fff;
}
html.dark .bp-toc-item a {
	color: #e6e6e6;
	transition: all 0.3 ease-in-out;
}
html.dark .bp-toc-item a:hover {
	color: #ffffff;
	font-weight: 500;
}
/* Active state with line */
.bp-toc-line {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: transparent;
	border-radius: 3px;
	transition: background 0.3s ease;
}
.bp-toc-item.active .bp-toc-line {
	background: #3719ca;
}
html.dark .bp-toc-item.active .bp-toc-line {
	background: #9a47ff;
}
.bp-toc-item.active a {
	color: #3827c7;
	font-weight: 600;
}
html.dark .bp-toc-item.active a {
	color: #9a47ff;
	font-weight: 600;
}
/* Progress bar */
.bp-read-progress {
	margin: 1.5rem 0;
	background: rgb(187 187 187 / 26%);
	border-radius: 4px;
	height: 6px;
	overflow: hidden;
}
.bp-read-bar {
	width: 0;
	height: 100%;
	background: #3719ca;
	transition: width 0.3s ease;
	border-radius: 100px;
}
html.dark .bp-read-bar {
	width: 0;
	height: 100%;
	background: #9a47ff;
	transition: width 0.3s ease;
	border-radius: 100px;
}
html.dark .bp-read-bar {
	width: 0;
	height: 100%;
	background: #9a47ff;
	transition: width 0.3s ease;
	border-radius: 100px;
}
/* Subscribe Button */
.bp-subscribe-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.2rem;
	border: none;
	border-radius: 50px;
	font-size: 0.95rem;
	cursor: pointer;
	color: #fff;
	background: #111;
	position: relative;
	overflow: hidden;
}
.bp-subscribe-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #00ffd5, #0075ff);
	transform: scale(0);
	transition: transform 0.4s ease;
	border-radius: 50px;
	z-index: 0;
}
.bp-subscribe-btn:hover::before {
	transform: scale(1);
}
.bp-subscribe-btn span,
.bp-subscribe-btn {
	position: relative;
	z-index: 1;
}
.main-container.blog-post-container {
	overflow: unset;
}
.blog-post-container figure img {
	max-width: 100% !important;
	border-radius: 8px;
	width: -webkit-fill-available;
	object-fit: cover;
}
/* blog post end */

/* project page start */
/* delayed reveal for helper text on projects page */

.wrap__project {
	padding: 12px 20px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	gap: 75px;
}
.hero__project {
	display: grid;
	gap: 28px;
	align-items: stretch;
	grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 1024px) {
	.hero {
		grid-template-columns: 1fr;
	}
	.wrap__project {
		flex-direction: column;
	}
}
/* 1) Let grid items shrink on small screens */
.hero > * {
	min-width: 0;
} /* crucial for Grid overflow */

/* 2) Keep the 'ticket' notch from sticking out horizontally on narrow viewports */
@media (max-width: 1024px) {
	.ticket {
		overflow: hidden;
	} /* clips the decorative :before bar */
}

/* 3) Make sure the slider column can shrink too */
.slider-card,
.slider-card .swiper {
	min-width: 0;
}

/* 4) Belt-and-suspenders: prevent any accidental layout overflow from media */
img,
video {
	max-width: 100%;
	height: auto;
}

/* کارت تیکتی سمت چپ؛ فرم گوشه‌دار مطابق عکس */
.ticket {
	padding: 48px 36px 26px;
	width: 100%;
	color: rgb(4, 0, 79);
	background-image: url(../media/shape/648851aaa48a45742e1c2189_bg-card-postBorderBig_laptop.png);
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	flex: 1;
}

.ticket h1 {
	font-weight: 900;
	line-height: 0.9;
	margin: 0 0 22px 0;
	font-size: clamp(44px, 7.2vw, 118px);
	letter-spacing: -0.5px;
}
html.dark .ticket h1,
html.dark .kpi__project {
	color: white !important;
}
.divider {
	margin: 18px 0;
	border-top: 1px solid var(--stroke);
}
html.dark .divider {
	border-top: 1px solid rgba(255, 255, 255, 0.637);
}
.kpi-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 16px;
}
@media (max-width: 568px) {
	.kpi-row {
		flex-wrap: wrap;
	}
}
.kpi__project {
	display: flex;
	gap: 12px;
	align-items: center;
}
.kpi__project .num {
	font-size: clamp(38px, 5.2vw, 72px);
	font-weight: 900;
}
.kpi__project .plus {
	font-size: 70px;
	margin-inline-start: 2px;
}

.scroll-cta {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.round-btn {
	width: 54px;
	height: 54px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: #151941;
	border: 1px solid var(--stroke);
}
.round-btn img {
	width: 22px;
	height: 22px;
}
.cta-btn {
	background: var(--brand);
	color: #2b2200;
	padding: 12px 22px;
	border: none;
	border-radius: 999px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(245, 196, 67, 0.25);
}

/* ====== کارت/اسلایدر سمت راست ====== */
.slider-card {
	border-radius: 30px;
	overflow: hidden;
	flex: 1;
}
/* زمینه گرادیانی شبیه نمونه */

.swiper {
	padding: 14px;
}

.post-media {
	overflow: hidden;
	margin: 0;
}
.post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.02);
	transition: transform 0.6s ease;
}

/* بخش سفید پایین کارت مثل تصویر */
.post-body {
	background: var(--white);
	color: #111;
	margin-top: 12px;
	padding: 18px 20px 16px;
}
.chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}
.chip {
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef0ff;
	color: #3b409c;
	border: 1px solid #dee2ff;
	display: inline-flex;
	gap: 8px;
	align-items: center;
}
.chip img {
	width: 14px;
	height: 14px;
}
.title {
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 900;
	line-height: 1.35;
	margin: 4px 0 8px;
}

/* نوارهای پیشرفت سه‌گانه زیر عنوان (مثل استوری) */
.story-bars {
	display: flex;
	gap: 10px;
	padding-top: 6px;
}
.bar {
	position: relative;
	flex: 1;
	height: 6px;
	background: #eceeff;
	border-radius: 999px;
	overflow: hidden;
}
.bar > span {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: right;
	background: #3719ca;
}

/* ====== لیست پروژه‌ها ====== */
#projects {
	scroll-margin-top: 16px;
}
.grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.grid {
		grid-template-columns: 1fr;
	}
}
.proj {
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proj:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.proj img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.proj .meta {
	padding: 12px 14px 16px;
}
.proj .meta h3 {
	margin: 0 0 6px 0;
	font-size: 18px;
}
.proj .meta p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.slider-card .swiper {
	padding: 0px;
}
/* replace your .post-card block */

.post-media {
	overflow: hidden;
	margin: 0;
	aspect-ratio: 16/9;
}
@media (max-width: 640px) {
	.post-media {
		aspect-ratio: 4/3;
	}
}
.slider-card:hover .post-media img {
	transform: scale(1.1);
}

/* if mask is on .swiper-slide now, move it to .slider-card instead: */
.post-media {
	-webkit-mask: url("../media/shape/foldermask.png") no-repeat top / 100% 100%;
	mask: url("../media/shape/foldermask.png") no-repeat top / 100% 100%;
}

/* Removed fixed height on .post-body at <=1024px to prevent clipping */
/* 1) Make each slide a fixed-height column layout */
.post-card {
	display: flex;
	flex-direction: column;
	/* pick a stable box for all slides */
	height: clamp(520px, 70vh, 620px);
}

/* 2) Keep media responsive but not driving the whole card height */
.post-media {
	margin-bottom: -21px;
	aspect-ratio: 16 / 9; /* adjust if you prefer another window */
	overflow: hidden;
}

/* 3) Body fills the remaining space consistently */
.post-body {
	flex: 1; /* takes the rest; same height across slides */
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	min-height: 160px; /* guard so single-line titles don't shrink the card */
}

/* 4) Cap title to two lines so height doesn't expand on long ones */
.title {
	display: -webkit-box;
	-webkit-line-clamp: 2; /* clamp to 2 lines */
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 5) Responsive tuning (optional) */
@media (max-width: 1024px) {
	.post-card {
		height: 520px;
	}
	.post-body {
		min-height: 140px;
	}
}
@media (max-width: 640px) {
	.post-card {
		height: 480px;
	}
	.post-body {
		min-height: 120px;
	}
}
/* Ensure post-body content remains accessible if height is constrained */
.post-body {
	overflow: auto;
}

/* project page end */

/* Service Content Section */
.service-content-section {
	padding: 80px 0;
	background: var(--bg, #ffffff);
}

.service-content-container {
	max-width: var(--container-w, 1200px);
	margin: 0 auto;
	padding: 0 var(--side-pad, 20px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.service-video-column {
	position: relative;
}

.service-video {
	width: 100%;
	height: 400px;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-content-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.service-title {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.service-description {
	font-size: clamp(16px, 2.5vw, 18px);
	line-height: 1.6;
	margin: 0;
	max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.service-content-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.service-video {
		height: 250px;
	}

	.service-content-column {
		text-align: center;
		align-items: center;
	}

	.service-description {
		max-width: none;
	}
}
html.dark .service-content-section {
	background: var(--panel-bg, #0d0d0f);
}
html.dark .service-title {
	color: var(--text, #f6f7ff);
}
html.dark .service-description {
	color: var(--text, #9aa0b5);
}

/* ---------- Config ---------- */
.scroll-cta {
	--icon-size: 35.2px; /* visible size */
	--dur: 0.4s;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	display: flex;
	align-items: center;
	gap: 0.75rem; /* space between items */
}

/* ---------- Icons (left/right) ---------- */
.round-btn {
	width: var(--icon-size);
	height: var(--icon-size);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: grid;
	place-items: center;
	transition: all var(--dur) var(--ease); /* includes width+height */
	flex: 0 0 auto; /* width drives layout */
}

.round-btn .icon {
	width: 70%;
	height: 70%;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* start state: LEFT visible, RIGHT hidden */
.round-btn.left {
	width: var(--icon-size);
	height: var(--icon-size);
	opacity: 1;
}
.round-btn.right {
	width: 0;
	height: 0;
	opacity: 0;
	border-width: 0; /* hide ring when collapsed */
}

/* hover swap: LEFT collapses; RIGHT expands */
.scroll-cta:hover .round-btn.left {
	width: 0;
	height: 0;
	opacity: 0;
	border-width: 0;
	/* optional nudge out */
}
.scroll-cta:hover .round-btn.right {
	width: var(--icon-size);
	height: var(--icon-size);
	opacity: 1;
	border-width: 1px;
}

/* optional micro-motion for the svg as it appears/disappears */
.round-btn.left .icon {
	transform: translateX(0);
}
.scroll-cta:hover .round-btn.left .icon {
	transform: translateX(8px);
	opacity: 0;
}

.round-btn.right .icon {
	transform: translateX(-8px);
	opacity: 0;
}
.scroll-cta:hover .round-btn.right .icon {
	transform: translateX(0);
	opacity: 1;
}

/* ---------- Text container grows to fill freed space ---------- */
.cta-btn.button__txt {
	position: relative;
	flex: 1 1 auto; /* this lets text widen when an icon collapses */
	overflow: hidden;
	line-height: 1.15;
	font-weight: 600;
	height: 2.2em;
	min-width: 17ch; /* optional: keeps it from getting too tiny */
	transition: width var(--dur) var(--ease); /* not required, but smooths layout */
}

/* two stacked lines that swap */
.cta-btn.button__txt > div {
	position: absolute;
	left: 0px;
	top: 7px;
	right: 7px;
	white-space: nowrap;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.cta-btn.button__txt > div:nth-child(1) {
	transform: translateY(0%);
	opacity: 1;
}
.cta-btn.button__txt > div:nth-child(2) {
	transform: translateY(110%);
	opacity: 0;
}

/* on hover, swap text lines */
.scroll-cta:hover .cta-btn.button__txt > div:nth-child(1) {
	transform: translateY(-110%);
	opacity: 0;
}
.scroll-cta:hover .cta-btn.button__txt > div:nth-child(2) {
	transform: translateY(0%);
	opacity: 1;
}
.service-content-section .scroll-cta .round-btn {
	background: white;
}
.service-content-section .scroll-cta .round-btn .icon {
	filter: invert(1);
}
.service-content-section .cta-btn.button__txt {
	min-width: 17ch;
}
.service-content-section .scroll-cta {
	margin-inline-start: unset;
}
@media (max-width: 768px) {
	.service-content-section .scroll-cta{
		margin:auto;
	}
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.round-btn,
	.round-btn .icon,
	.cta-btn.button__txt,
	.cta-btn.button__txt > div {
		transition: none !important;
	}
}
html.dark .round-btn {
	background: #000;
}
html.dark .cta-btn {
	box-shadow: none;
}

/* Project boxes start */
.containerprojects {
	position: relative;
	border-radius: 9px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
}

.checkboxes {
	width: 100%;
	padding: 2rem 0;
	display: flex;
	text-align: left;
	flex-wrap: wrap;
	justify-content: center;
}

.tag-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border: 2px solid #000;
	border-radius: 6px;
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 4px;
	font-size: 14px;
	font-weight: 500;
}
.service-content-section{
	background: linear-gradient(90deg, #c7c7c7 0%, #ffffff 100%);
}
.tag-button input[type="checkbox"] {
	display: none;
}

@media screen and (max-width: 300px) {
	.tag-button {
		width: 100%;
	}
}

.tag-button {
	align-items: center;
	border: 1.5px solid var(--color-surface-white);
	border-radius: 99px;
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	font-size: 13px;
	gap: 8px;
	justify-content: center;
	margin: 5px;
	max-width: 130px;
	padding: 0.3rem 2rem;
	position: relative;
	white-space: nowrap;
	background-color: white;
	transition: all 0.2s ease-in-out;
}
.tag-button:hover {
	filter: invert(1);
}
.tag-button input {
	opacity: 0;
	position: absolute;
}

.tag-button .checked {
	opacity: 0;
	border: 1.5px solid var(--color-surface-white);
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--color-surface-white);
	border-radius: 99px;
	color: var(--color-just-black);
	display: flex;
	justify-content: center;
	align-items: center;
}

.tag-button input:checked + .checked {
	opacity: 1;
}
/* Project boxes end */
.projects-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 20px;
	height: 100vh;
}
.projects-container.home {
	height: max-content;
}
@media (max-width: 992px) {
	.projects-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.projects-container {
		grid-template-columns: 1fr;
	}
}
.project-card {
	overflow: hidden;
	transition: transform 0.2s ease;
	align-items: flex-start !important;
	border-radius: 10px;
	height: fit-content;
	cursor: pointer;
}

.project-th_container {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	-webkit-mask-image: url("../media/shape/foldermask.png");
	-webkit-mask-size: cover;
	-webkit-mask-repeat: no-repeat;
	mask-image: url("../media/shape/foldermask.png");
	mask-size: cover;
	mask-repeat: no-repeat;
	transition: all 0.3s ease-in-out;
	border-radius: 0px;
}
img.project-thumb {
	height: -webkit-fill-available;
	transition: all 0.7s ease-in-out;
	object-fit: cover;
	width: 100%;
}
.project-card:hover .project-thumb {
	transform: scale(1.05);
}
.project-info {
	padding: 16px;
}

.project-th_container {
	overflow: hidden;
}
html.dark .project-th_container {
	border-radius: unset;
}
.project-languages {
	font-size: 14px;
	color: #777;
	margin-bottom: 8px;
}

.project-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
}
.tag-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 6px;
	font-size: 14px;
	font-weight: 500;
}

/* hide native checkbox */
.tag-button input[type="checkbox"] {
	display: none;
}

/* icons default hidden */
.tag-button .tag-icon--check,
.tag-button .tag-icon--cross {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	display: none;
	transition: opacity 0.2s ease;
}

.tag-button input[type="checkbox"]:checked ~ .tag-icon--check {
	display: inline-block;
}

.tag-button input[type="checkbox"]:checked:hover ~ .tag-icon--check {
	display: none;
}
.tag-button input[type="checkbox"]:checked:hover ~ .tag-icon--cross {
	display: inline-block;
}

.tag-button input[type="checkbox"]:checked ~ .tag-text,
.tag-button input[type="checkbox"]:checked ~ .tag-icon--check,
.tag-button input[type="checkbox"]:checked ~ .tag-icon--cross {
	color: #fff;
}

.tag-button input[type="checkbox"]:checked ~ * {
	color: #fff;
}

.tag-button input[type="checkbox"]:checked ~ .tag-text {
	background: none;
}

.tag-button input[type="checkbox"]:checked ~ * {
	background: none;
}

.tag-button:has(input[type="checkbox"]:checked) {
	background: #000;
	color: #fff;
}
html.dark .tag-button:has(input[type="checkbox"]:checked) {
	background: white;
	color: #000;
}
html.dark .tag-button input[type="checkbox"]:checked ~ .tag-text,
.tag-button input[type="checkbox"]:checked ~ .tag-icon--check,
.tag-button input[type="checkbox"]:checked ~ .tag-icon--cross {
	color: black;
}
html.dark .tag-button {
	background: #000;
	color: white;
}
/* pagination project css start */

.w-embed:before,
.w-embed:after {
	content: " ";
	grid-area: 1/1/2/2;
	display: table;
}
.w-embed:after {
	clear: both;
}

.w-pagination-wrapper {
	flex-wrap: wrap;
	justify-content: center;
	display: flex;
}
.w-pagination-previous,
.w-pagination-next {
	color: #333;
	background-color: #fafafa;
	border: 1px solid #ccc;
	border-radius: 2px;
	margin-left: 10px;
	margin-right: 10px;
	padding: 9px 20px;
	font-size: 14px;
	display: block;
}
.bg-color-white {
	background-color: var(--white);
}
.posts-pagination {
	z-index: 1;
	grid-column-gap: 2rem;
	grid-row-gap: 2rem;
	opacity: 0;
	justify-content: center;
	align-items: center;
	min-height: 3.5rem;
	margin: 2rem 0rem;
	transition: opacity 0.5s;
	display: flex;
}
.posts-pagination__btn {
	color: #000000;
	background-color: #0000;
	border: 0.0625rem solid #00000017;
	border-radius: 50%;
	justify-content: center;
	align-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 2.1;
	transition: all 0.4s;
	display: flex;
	position: relative;
	overflow: hidden;
	transform: translate(0);
}
.posts-pagination__btn:hover {
	color: #02021e;
	border-color: #fff0;
}
.posts-pagination__btn.is-page:hover {
	color: #02021e;
}
.posts-pagination__btn.is-page.w--current {
	color: #02021e;
	background-color: #fff;
	border-color: #fff0;
	font-size: 0.875rem;
	line-height: 1.4;
}
.posts-pagination__btn.is-previews {
	transform: rotate(-180deg);
}
.posts-pagination__pages {
	grid-column-gap: 1rem;
	grid-row-gap: 1rem;
	justify-content: center;
	align-items: center;
	display: flex;
}
.button__icon-anim {
	z-index: 1;
	justify-content: center;
	align-items: center;
	font-size: 0;
	transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
	display: flex;
	position: relative;
	transform: translate(0%);
}
.button__bg {
	background-color: #3827c7;
	border-radius: 50%;
	width: 100%;
	height: 100%;
	transition: all 0.3s;
	position: absolute;
	inset: 0%;
	transform: scale(0);
}
.button__bg.bg-color-white {
	background-color: #fff;
}
.icon-regular {
	z-index: 2;
	width: 1.5rem;
	height: 1.5rem;
	line-height: 0;
	position: relative;
}
.icon-regular.is-absolute {
	position: absolute;
	inset: 0%;
	transform: translate(-180%);
}
@media screen and (max-width: 991px) {
	.posts-pagination {
		min-height: 3rem;
		margin-top: 3rem;
		bottom: -7.5rem;
	}
	.posts-pagination__btn {
		width: 3rem;
		height: 3rem;
	}
	.posts-pagination__btn:hover {
		color: var(--white);
		border-color: #ffffff4d;
	}
	.posts-pagination__btn.is-page:hover {
		color: var(--white);
		background-color: #0000;
		border-color: #ffffff4d;
	}
	.posts-pagination__btn.is-page.w--current {
		color: var(--blue-dark);
		background-color: #fff;
		border-color: #fff;
	}
}
@media screen and (max-width: 767px) {
	.posts-pagination {
		grid-column-gap: 0.5rem;
		min-height: 2.5rem;
	}
	.posts-pagination__btn,
	.posts-pagination__btn.is-page.w--current {
		width: 2.5rem;
		height: 2.5rem;
	}
	.posts-pagination__pages {
		grid-column-gap: 0.5rem;
	}
}
html.dark .posts-pagination {
	filter: invert(1);
}
[fs-cmsload-element="page-button"]::after {
	content: "";
	width: 100%;
	height: 100%;
	background-color: white;
	border-radius: 50%;
	transition: all 0.4s;
	position: absolute;
	top: 0%;
	bottom: 0%;
	left: 0%;
	right: 0%;
	transform: scale(0);
	z-index: -1;
}
[fs-cmsload-element="page-button"]:hover::after {
	transform: scale(1);
}
[fs-cmsload-element="page-button"].w--current::after {
	transform: scale(1);
}
a[class^="w-pagination-"] {
	display: flex !important;
}
a[class^="w-pagination-"][style*="display: none"] {
	cursor: default;
	pointer-events: none;
	color: rgba(50, 50, 50, 0.3);
	border-color: 0.0625rem solid #00000017;
}
@media screen and (min-width: 992px) {
	a[class^="w-pagination-"]:hover .button__icon-anim {
		transform: translate(180%);
	}
	a[class^="w-pagination-"]:hover .button__bg {
		transform: scale(1);
	}
}
a[class^="w-pagination-"][style*="display: none"] .button__icon-anim {
	transform: translate(0%);
}
a[class^="w-pagination-"][style*="display: none"] .button__bg {
	transform: scale(0);
}
@media screen and (max-width: 479px) {
	[data-page-current] a:not(.is-show) {
		display: none;
	}
	[data-page-current] a.w--current,
	[data-page-current] a.w--current + a {
		display: flex;
	}
}

/* pagination project css end */

/* bug/ response Fixes Start */
@media (min-width: 581px) and (max-width: 900px) {
	.hero__title {
		width: unset;
		margin: auto !important;
		font-size: 4rem;
	}
	.hero__sub {
		font-size: 24px !important;
	}
}
@media (min-width: 375px) and (max-width: 460px) {
	.hero__title {
		font-size: 2rem;
        width: unset;
        text-align: center;
	}
	.hero__sub {
		text-align: center;
	}
	.container-flair-gsap {
		margin: auto;
	}
}
@media (min-width: 460px) and (max-width: 580px) {
	.hero__title {
		font-size: 3rem;
	}
}
@media (max-width: 900px) {
	.bp-toc-collar-bg {
		background-image: url("../media/shape/test.svg"),
			linear-gradient(90deg, #dfdfdf 0%, #d8d8d8 100%);
	}
}
@media (min-width: 768px) {
	.bp-toc-collar-bg {
		background-image: url(../media/shape/test.svg), linear-gradient(90deg, #efefef 0%, #ededed 100%);
	}
}
@media (max-width: 900px) {
	.projects-container {
		height: unset;
	}
}
@media (max-width: 423px) {
	.project-card {
		height: 280px;
	}
}
@media (max-width: 538px) {
	.project-card {
		height: 353px;
	}
}
@media (min-width: 990px) and (max-width: 1100px) {
	.projects-container {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* bug/ response Fixes end */
/* FAQ section start */
/* FAQ Section */
.faq-section {
	padding: 80px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.faq-title {
	text-align: center;
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 50px;
}

.faq-container {
	display: flex;
	flex-direction: row;
	gap: 20px;
	padding: 20px;
}
.faq-item-wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}
/* Accordion Item */
.faq-item {
	background: #f9f9f9;
	border-radius: 30px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.faq-question {
	width: 100%;
	padding: 24px 30px;
	background: none;
	border: none;
	outline: none;
	font-size: 22px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

/* Shape morph effect when active */
.faq-item.active {
	background: #fff4d0;
	border-radius: 50px; /* smoother morph */
	transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Answer content */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.6s ease, padding 0.4s ease;
	padding: 0 30px;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 20px 30px 30px;
}

.faq-content {
	display: flex;
	align-items: center;
	gap: 30px;
}

.faq-text {
	flex: 1;
	font-size: 18px;
	line-height: 1.6;
}
.faq-text p {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.faq-image {
	flex: 1;
}

.faq-image img {
	width: 100%;
	border-radius: 20px;
	object-fit: cover;
	max-height: 260px;
}

/* Icon Wrapper */
.icon-wrapper {
	position: relative;
	width: 26px;
	height: 26px;
	display: inline-block;
}
.faq-img {
	width: 400px;
	object-fit: cover;
	height: 580px;
	border-radius: 8px;
}
@media (max-width: 850px) {
	.faq-img-container {
		display: none;
	}
}
/* Icon Set (plus or minus group) */
.icon-set {
	position: absolute;
	inset: 0;
	overflow: hidden;
	transition: opacity 0.3s ease;
	border: 1px solid #0000002e;
	border-radius: 100px;
	padding: 15px;
}
.icon-set .icon {
	width: 100%;
	position: absolute;
	left: 0;
	transition: transform 0.3s ease, top 0.3s ease;
}
.icon.main {
	top: 2px;
	transform: translateY(0);
}

/* Dark mode icon filter */
html.dark .icon.main,
html.dark .icon-set:hover .hover {
	filter: invert(1);
}
html.dark .icon-set {
	border: 1px solid #ffffff2e;
}
.icon.hover {
	top: 100%;
	transform: translateY(0);
}

/* Swap animation inside a set */
.icon-set:hover .main {
	transform: translateY(-100%);
}
.icon-set:hover .hover {
	top: 2px;
}

/* Default State → only plus-set visible */
.plus-set {
	opacity: 1;
	pointer-events: auto;
}
.minus-set {
	opacity: 0;
	pointer-events: none;
}

/* Active State → swap to minus-set */
.faq-item.active .plus-set {
	opacity: 0;
	pointer-events: none;
}
.faq-item.active .minus-set {
	opacity: 1;
	pointer-events: auto;
}

/* Responsive */
@media (max-width: 992px) {
	.faq-content {
		flex-direction: column;
	}
	.faq-text,
	.faq-image {
		flex: unset;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.faq-title {
		font-size: 32px;
	}
	.faq-question {
		font-size: 18px;
		padding: 18px 20px;
	}
	.faq-answer {
		padding: 0 20px;
	}
	.faq-item.active .faq-answer {
		padding: 15px 20px 20px;
	}
}
.faq-item span {
	text-align: start;
	font-size: 15px;
}
/* FAQ section end */

.whyus {
	position: relative;
	background-image: url(../media/shape/test5.png);
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	padding: 100px 20px;
}

/* .whyus__title,
.whyus__list li,
.whyus__media {
	opacity: 0;
	transform: translateY(50px);
	will-change: transform, opacity;
} */
/* GSAP Theme transition reveal */
.theme-transition-clip {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 9999;
	pointer-events: none;
	clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
	transition: clip-path 0.7s ease-in-out;
}

.theme-transition-clip.is-active {
	clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}

.theme-transition-clip > html {
	position: absolute;
	top: var(--scroll-top, 0);
	left: 0;
	width: 100%;
	height: 100%;
}

@media (min-width: 455px) and (max-width: 725px) {
	.contact-right {
		background-size: 100% 100%; /* stretch to cover width and height */
		background-position: center;
	}
}

/* Comments Section Styles Start */
.comments-section {
	margin: 60px auto;
	padding: 0 20px;
	background: #f6f7f8;
	padding-top: 40px;
	padding-bottom: 40px;
}

.comments-container {
	background: #f6f7f8;
}

/* Top Composer */
.composer {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	background: #ffffff;
	border-radius: 8px;
	padding: 14px;
	box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
}

.composer-avatar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e8eaeb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.composer-input-wrapper {
	flex: 1;
}

.composer-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.composer-field-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
}

.composer-input-container {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.composer-input-icon {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 18px;
	color: #9aa0a6;
	pointer-events: none;
	z-index: 1;
	transition: color 0.18s ease;
}

.composer-input-container:focus-within .composer-input-icon {
	color: #0079ff;
}

.composer-input {
	width: 100%;
	padding: 10px 12px 10px 38px;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.projects-container.home.v2 {
	display: none;
}

.composer-input:focus {
	outline: none;
	border-color: #0079ff;
	background: #ffffff;
}

.composer-input::placeholder {
	color: #9aa0a6;
}

html.dark .composer-input {
	background: var(--input-bg);
	border-color: var(--input-border);
	color: var(--text-primary);
}

html.dark .composer-input:focus {
	border-color: var(--accent);
	background: var(--bg-tertiary);
}

html.dark .composer-input::placeholder {
	color: var(--text-muted);
}

html.dark .composer-input-icon {
	color: var(--text-muted);
}

html.dark .composer-input-container:focus-within .composer-input-icon {
	color: var(--accent);
}

/* Dark mode for comments section */
html.dark .comments-section {
	background: var(--bg-secondary, #1a1a1a);
}

html.dark .comments-container {
	background: var(--bg-secondary, #1a1a1a);
}

html.dark .composer {
	background: var(--card-bg, #1e1e1e);
	border: 1px solid var(--border, #333);
}

html.dark .composer-avatar {
	background: var(--input-bg, #2a2a2a);
}

.composer-textarea {
	width: 100%;
	min-height: 60px;
	padding: 10px 12px;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	background: #fafafa;
	font-size: 14px;
	resize: none;
	overflow: hidden;
	line-height: 1.5;
	margin-bottom: 10px;
	transition: border-color 0.18s ease;
}

.composer-textarea:focus {
	outline: none;
	border-color: #0079ff;
	background: #ffffff;
}

html.dark .composer-textarea {
	background: var(--input-bg, #2a2a2a);
	border-color: var(--input-border, #444);
	color: var(--text-primary, #ffffff);
}

html.dark .composer-textarea:focus {
	border-color: var(--accent, #9a47ff);
	background: var(--bg-tertiary, #2a2a2a);
}

html.dark .composer-textarea::placeholder {
	color: var(--text-muted, #888888);
}

.composer-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.composer-btn {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: all 0.18s ease;
}

.composer-btn--post {
	background: #000;
	color: white;
	border-radius: 100px;
	padding: 8px 20px;
	transition: all 0.48s ease;
}

.composer-btn--post:hover {
	background: transparent;
	color: #000;
	border: 1px solid #000;
}

html.dark .composer-btn--post {
	background: var(--accent, #9a47ff);
	color: #ffffff;
}

html.dark .composer-btn--post:hover {
	background: transparent;
	color: var(--accent, #9a47ff);
	border: 1px solid var(--accent, #9a47ff);
}

/* Comment Card */
.comment {
	display: flex;
	gap: 12px;
	margin-bottom: 10px;
}

.comment-body {
	flex: 1;
	min-width: 0;
}

.comment-card {
	border-radius: 32px;
	padding: 12px 14px;
	box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
	transition: background 0.18s ease;
	border: 1px solid #e6e8ea;
}

.comment-card:hover {
	background: #f0f2f3;
}

html.dark .comment-card {
	background: var(--card-bg, #1e1e1e);
	border-color: var(--border, #333);
}

html.dark .comment-card:hover {
	background: var(--bg-tertiary, #2a2a2a);
}

/* Vote Column */
.vote-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-top: 4px;
	flex-shrink: 0;
	width: 36px;
}

/* Comment Avatar */
.comment-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #e8eaeb;
}

.comment-avatar-letter {
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

html.dark .comment-avatar {
	background-color: var(--input-bg, #2a2a2a);
}

html.dark .comment-avatar-letter {
	color: var(--text-primary, #ffffff);
}

.vote-up,
.vote-down {
	width: 20px;
	height: 20px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.vote-up:focus,
.vote-down:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
	border-radius: 4px;
}

.vote-up svg,
.vote-down svg {
	width: 100%;
	height: 100%;
	stroke: #9aa0a6;
	stroke-width: 2;
	transition: stroke 0.15s ease, fill 0.15s ease;
}

.vote-up.active svg {
	stroke: #ff8b2e;
	fill: #ff8b2e;
}

.vote-down.active svg {
	stroke: #3578e5;
	fill: #3578e5;
}

.score {
	font-size: 13px;
	font-weight: 600;
	color: #111111;
	min-height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

html.dark .score {
	color: var(--text-primary, #ffffff);
}

/* Comment Meta */
.meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.caret {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px 4px;
	color: #9aa0a6;
	font-size: 10px;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.caret:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
	border-radius: 4px;
}

.caret[aria-expanded="false"] {
	transform: rotate(-90deg);
}

.username {
	font-weight: 600;
	color: #111111;
	font-size: 14px;
}

html.dark .username {
	color: var(--text-primary, #ffffff);
}

.time {
	color: #6b6b6b;
	font-size: 12px;
}

html.dark .time {
	color: var(--text-muted, #888888);
}

.comment-text {
	color: #111111;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 8px;
	word-wrap: break-word;
}

html.dark .comment-text {
	color: var(--text-primary, #ffffff);
}

.actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.reply-btn {
	background: none;
	border: none;
	color: #6b6b6b;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.18s ease;
}

.reply-btn:hover {
	background: #f0f2f3;
}

.reply-btn:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
}

html.dark .reply-btn {
	color: var(--text-secondary, #b3b3b3);
}

html.dark .reply-btn:hover {
	background: var(--bg-tertiary, #2a2a2a);
}

/* Reply Form */
.reply-form {
	margin-top: 12px;
	margin-bottom: 12px;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.reply-textarea {
	width: 100%;
	min-height: 60px;
	padding: 10px 12px;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	background: #fafafa;
	font-size: 14px;
	resize: none;
	overflow: hidden;
	line-height: 1.5;
	margin-bottom: 10px;
	transition: border-color 0.18s ease;
}

.reply-textarea:focus {
	outline: none;
	border-color: #0079ff;
	background: #ffffff;
}

html.dark .reply-textarea {
	background: var(--input-bg, #2a2a2a);
	border-color: var(--input-border, #444);
	color: var(--text-primary, #ffffff);
}

html.dark .reply-textarea:focus {
	border-color: var(--accent, #9a47ff);
	background: var(--bg-tertiary, #2a2a2a);
}

html.dark .reply-textarea::placeholder {
	color: var(--text-muted, #888888);
}

.reply-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.reply-btn-post,
.reply-btn-cancel {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: all 0.18s ease;
}

.reply-btn-post {
	background: #0079ff;
	color: white;
}

.reply-btn-post:hover {
	background: #0066cc;
}

.reply-btn-cancel {
	background: transparent;
	color: #6b6b6b;
	border: 1px solid #e6e8ea;
}

.reply-btn-cancel:hover {
	background: #f0f2f3;
}

html.dark .reply-btn-post {
	background: var(--accent, #9a47ff);
	color: #ffffff;
}

html.dark .reply-btn-post:hover {
	background: var(--accent-hover, #8b40e6);
}

html.dark .reply-btn-cancel {
	background: transparent;
	color: var(--text-secondary, #b3b3b3);
	border-color: var(--border, #333);
}

html.dark .reply-btn-cancel:hover {
	background: var(--bg-tertiary, #2a2a2a);
}

/* Replies Container */
.replies {
	margin-left: 0;
	margin-top: 10px;
	padding-left: 24px;
	border-left: 1.5px solid #e8eaeb;
}

html.dark .replies {
	border-left-color: var(--border, #333);
}

.replies .comment {
	margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.comments-section {
		padding: 0 16px;
		margin: 40px auto;
	}

	.composer-fields {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.composer-field-wrapper {
		flex-direction: row;
		align-items: center;
		gap: 4px;
	}

	.composer {
		padding: 12px;
	}

	.vote-col {
		width: 32px;
	}

	.vote-up,
	.vote-down {
		width: 18px;
		height: 18px;
	}

	.replies {
		padding-left: 16px;
		border-left-width: 1px;
	}

	.comment-card {
		padding: 10px 12px;
	}
}

/* Comments Actions Row */
.comments-actions-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding: 12px 14px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
	flex-wrap: wrap;
}

html.dark .comments-actions-row {
	background: var(--card-bg, #1e1e1e);
	border: 1px solid var(--border, #333);
}

/* Star Rating */
.star-rating-wrapper {
	position: relative;
}

.star-rating-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.18s ease;
	font-size: 14px;
	color: #6b6b6b;
}

.star-rating-btn:hover {
	background: #f0f2f3;
	border-color: #ff8b2e;
}

html.dark .star-rating-btn {
	background: transparent;
	border-color: var(--border, #333);
	color: var(--text-secondary, #b3b3b3);
}

html.dark .star-rating-btn:hover {
	background: var(--bg-tertiary, #2a2a2a);
	border-color: #ff8b2e;
}

.star-rating-btn:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
}

.star-rating-btn svg {
	transition: fill 0.18s ease;
}

.star-rating-btn:hover svg {
	fill: #ff8b2e;
}

.rating-text {
	font-size: 14px;
	font-weight: 500;
}

.stars-popup {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 100;
}

html.dark .stars-popup {
	background: var(--card-bg, #1e1e1e);
	border: 1px solid var(--border, #333);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Hover bridge to keep popup visible when moving mouse to stars */
.stars-popup::before {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 0;
	right: 0;
	height: 8px;
	background: transparent;
}

.star-rating-wrapper:hover .stars-popup,
.star-rating-wrapper.active .stars-popup {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Keep popup visible when hovering directly over it */
.stars-popup:hover {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.star-item {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #9aa0a6;
	transition: color 0.15s ease, transform 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.star-item:hover,
.star-item.selected {
	color: #ff8b2e;
}

.star-item:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
	border-radius: 4px;
}

.star-item svg {
	width: 32px;
	height: 32px;
}

/* Comment Counter */
.comment-counter-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.18s ease;
	font-size: 14px;
	color: #6b6b6b;
}

.comment-counter-btn:hover {
	background: #f0f2f3;
	border-color: #0079ff;
}

.comment-counter-btn:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
}

.comment-count {
	font-weight: 600;
	color: #111111;
}

html.dark .comment-counter-btn {
	background: transparent;
	border-color: var(--border, #333);
	color: var(--text-secondary, #b3b3b3);
}

html.dark .comment-counter-btn:hover {
	background: var(--bg-tertiary, #2a2a2a);
	border-color: var(--accent, #9a47ff);
}

html.dark .comment-count {
	color: var(--text-primary, #ffffff);
}

/* Sort Dropdown */
.sort-dropdown-wrapper {
	position: relative;
	margin-left: auto;
}

.sort-dropdown-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #e6e8ea;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.18s ease;
	font-size: 14px;
	color: #6b6b6b;
}

.sort-dropdown-btn:hover {
	background: #f0f2f3;
	border-color: #0079ff;
}

.sort-dropdown-btn:focus {
	outline: 2px solid #0079ff;
	outline-offset: 2px;
}

.sort-dropdown-wrapper.active .sort-dropdown-btn {
	background: #f0f2f3;
	border-color: #0079ff;
}

.sort-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sort-arrow {
	transition: transform 0.2s ease;
}

.sort-dropdown-wrapper.active .sort-arrow {
	transform: rotate(180deg);
}

.sort-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 180px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 100;
	overflow: hidden;
}

html.dark .sort-dropdown-btn {
	background: transparent;
	border-color: var(--border, #333);
	color: var(--text-secondary, #b3b3b3);
}

html.dark .sort-dropdown-btn:hover {
	background: var(--bg-tertiary, #2a2a2a);
	border-color: var(--accent, #9a47ff);
}

html.dark .sort-dropdown-wrapper.active .sort-dropdown-btn {
	background: var(--bg-tertiary, #2a2a2a);
	border-color: var(--accent, #9a47ff);
}

html.dark .sort-dropdown-menu {
	background: var(--card-bg, #1e1e1e);
	border: 1px solid var(--border, #333);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sort-dropdown-wrapper.active .sort-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.sort-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	color: #111111;
	transition: background 0.18s ease;
}

.sort-option:hover {
	background: #f0f2f3;
}

.sort-option:focus {
	outline: 2px solid #0079ff;
	outline-offset: -2px;
}

.sort-option svg {
	flex-shrink: 0;
	stroke: #6b6b6b;
}

.sort-option:hover svg,
.sort-option.active svg {
	stroke: #0079ff;
}

.sort-option.active {
	background: #f0f2f3;
	font-weight: 600;
}

html.dark .sort-option {
	color: var(--text-primary, #ffffff);
}

html.dark .sort-option:hover {
	background: var(--bg-tertiary, #2a2a2a);
}

html.dark .sort-option.active {
	background: var(--bg-tertiary, #2a2a2a);
}

html.dark .sort-option svg {
	stroke: var(--text-muted, #888888);
}

html.dark .sort-option:hover svg,
html.dark .sort-option.active svg {
	stroke: var(--accent, #9a47ff);
}

html.dark .caret {
	color: var(--text-muted, #888888);
}

html.dark .vote-up svg,
html.dark .vote-down svg {
	stroke: var(--text-muted, #888888);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.comments-actions-row {
		gap: 8px;
		padding: 10px 12px;
	}

	.star-rating-btn,
	.comment-counter-btn,
	.sort-dropdown-btn {
		padding: 6px 10px;
		font-size: 13px;
	}

	.sort-dropdown-wrapper {
		margin-left: 0;
		width: 100%;
	}

	.sort-dropdown-btn {
		width: 100%;
		justify-content: center;
	}

	.sort-dropdown-menu {
		right: auto;
		left: 0;
		width: 100%;
	}
}
/* Comments Section Styles end */

/* bug fixes start*/
.header-actions-right form {
	padding: 0;
}
@media (max-width: 768px) {
	.connector,
	#headerThemeToggle,
	.header-actions-right {
		display: none !important;
	}
	.actions {
		display: flex;
		gap: 12px;
		margin-top: 8px;
		width: 100%;
		justify-content: space-between;
		margin-left: unset !important;
	}
}
@media (max-width: 1350px) {
	.header-actions-right .search-wrapper {
		display: none !important;
	}
}
@media (max-width: 556px) {
	.adress-link {
		flex-direction: column;
		text-align: center;
	}
}
.helper-class-n1 .bp-breadcrumb {
	margin: unset;
}
@media (max-width: 768px) {
	.hero__title {
        text-align: center;
	}
	.hero__sub {
		text-align: center;
	}
}
@media (min-width: 768px) and (max-width: 900px) {
	.bp-toc-collar-bg {
        background-image: url(../media/shape/test.svg), linear-gradient(90deg, #dcdcdc 0%, #d9d9d9 100%);
    }
	html.dark .bp-toc-collar-bg {
        background-image: url(../media/shape/test.svg), linear-gradient(45deg, #1e1e1e 55%, #2a2a2a 45%);
    }
}
@media (max-width: 900px) {
    .services-page .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
main.main-container.about-page{
	background: none !important;
}
/* bug fixes end*/

