/* =========================================================================
   Home page design upgrade — services, partners, blog.
   Dark theme only; light theme keeps its original styling.
   ========================================================================= */

/* ---------------------------------------------------------------- Services */
body:not(.light-theme) #services .service-card {
	--a1: #06b6d4;
	--a2: #6366f1;
	--glow: rgba(6, 182, 212, .28);
	background:
		linear-gradient(160deg, rgba(16, 20, 58, .92), rgba(7, 8, 26, .96)) padding-box,
		linear-gradient(150deg, color-mix(in srgb, var(--a1) 55%, transparent), rgba(255, 255, 255, .05) 45%, color-mix(in srgb, var(--a2) 45%, transparent)) border-box !important;
	border: 1px solid transparent !important;
	border-radius: 20px !important;
	padding: 26px 24px 22px !important;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease !important;
	isolation: isolate;
}
body:not(.light-theme) #services .service-card.card-glow-purple { --a1: #a855f7; --a2: #6366f1; --glow: rgba(168, 85, 247, .28); }
body:not(.light-theme) #services .service-card.card-glow-pink   { --a1: #ec4899; --a2: #a855f7; --glow: rgba(236, 72, 153, .26); }

/* Corner light bloom */
body:not(.light-theme) #services .service-card::before {
	content: '' !important;
	position: absolute !important;
	inset: auto !important;
	top: -70px !important;
	inset-inline-start: -70px !important;
	width: 200px !important;
	height: 200px !important;
	border-radius: 50% !important;
	background: radial-gradient(circle, var(--glow), transparent 68%) !important;
	opacity: .55 !important;
	z-index: -1 !important;
	pointer-events: none;
	transition: opacity .35s ease, transform .5s ease !important;
}

/* Neon floor line */
body:not(.light-theme) #services .service-card::after {
	top: auto !important;
	bottom: 0 !important;
	left: 22% !important;
	right: 22% !important;
	height: 2px !important;
	background: linear-gradient(90deg, transparent, var(--a1), var(--a2), transparent) !important;
	box-shadow: 0 0 14px var(--a1);
	opacity: .55 !important;
	transition: opacity .35s ease, left .35s ease, right .35s ease !important;
}

body:not(.light-theme) #services .service-card:hover {
	transform: translateY(-6px) !important;
	box-shadow: 0 26px 50px -22px var(--glow), 0 0 0 1px color-mix(in srgb, var(--a1) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
body:not(.light-theme) #services .service-card:hover::before { opacity: 1 !important; transform: scale(1.15); }
body:not(.light-theme) #services .service-card:hover::after { opacity: 1 !important; left: 10% !important; right: 10% !important; }

body:not(.light-theme) #services .service-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 18px;
}

body:not(.light-theme) #services .service-card .service-icon {
	width: 54px !important;
	height: 54px !important;
	margin-bottom: 0 !important;
	border-radius: 16px !important;
	font-size: 1.35rem !important;
	color: #fff !important;
	background: linear-gradient(140deg, var(--a1), var(--a2)) !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	box-shadow: 0 10px 24px -8px var(--glow), 0 0 0 5px color-mix(in srgb, var(--a1) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}
body:not(.light-theme) #services .service-card:hover .service-icon {
	transform: rotate(-6deg) scale(1.06) !important;
	box-shadow: 0 14px 30px -6px var(--glow), 0 0 0 7px color-mix(in srgb, var(--a1) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

body:not(.light-theme) #services .service-index {
	font-size: 2rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -.02em;
	color: transparent !important;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--a1) 55%, transparent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 22%, transparent), transparent);
	-webkit-background-clip: text;
	background-clip: text;
	transition: -webkit-text-stroke-color .35s ease;
}
body:not(.light-theme) #services .service-card:hover .service-index { -webkit-text-stroke-color: var(--a1); }

body:not(.light-theme) #services .service-card h3 {
	font-size: 1.12rem !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	color: #f1f5ff !important;
}
body:not(.light-theme) #services .service-card p {
	color: #9aa6c4 !important;
	font-size: .88rem !important;
	line-height: 1.75 !important;
}

body:not(.light-theme) #services .service-card .service-link {
	align-self: flex-start;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 16px;
	padding-inline-start: 16px;
	padding-inline-end: 8px;
	border-radius: 999px;
	font-size: .86rem !important;
	font-weight: 600;
	color: #e7ecff !important;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09);
	transition: background .3s ease, border-color .3s ease, color .3s ease;
}
body:not(.light-theme) #services .service-card .service-link i {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: .72rem;
	color: #fff;
	background: linear-gradient(140deg, var(--a1), var(--a2));
	box-shadow: 0 0 12px var(--glow);
}
body:not(.light-theme) #services .service-card:hover .service-link {
	background: color-mix(in srgb, var(--a1) 12%, transparent);
	border-color: color-mix(in srgb, var(--a1) 45%, transparent);
	color: #fff !important;
}

body:not(.light-theme) #services .service-card .service-bg-icon {
	color: var(--a1) !important;
	opacity: .035 !important;
}
body:not(.light-theme) #services .service-card:hover .service-bg-icon { opacity: .08 !important; }

/* ---------------------------------------------------------------- Partners */
.tekcraft-partners-ticker-wrap--grid {
	overflow: visible !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	padding: 10px 20px 0 !important;
}
.tekcraft-partners-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	max-width: 1100px;
	margin-inline: auto;
}

body:not(.light-theme) .clients-section .partner-logo-item {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 230px !important;
	height: 124px !important;
	padding: 18px 26px !important;
	margin: 0 10px;
	border-radius: 18px !important;
	background:
		linear-gradient(160deg, rgba(16, 20, 58, .85), rgba(7, 8, 26, .92)) padding-box,
		linear-gradient(150deg, rgba(34, 211, 238, .35), rgba(255, 255, 255, .05) 50%, rgba(168, 85, 247, .35)) border-box !important;
	border: 1px solid transparent !important;
	box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
	transition: transform .35s ease, box-shadow .35s ease;
	overflow: hidden;
}
body:not(.light-theme) .tekcraft-partners-grid .partner-logo-item { margin: 0; }
body:not(.light-theme) .clients-section .partner-logo-item::after {
	content: '';
	position: absolute;
	inset-inline: 25%;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent);
	opacity: .5;
	transition: opacity .35s ease, inset-inline .35s ease;
}
body:not(.light-theme) .clients-section .partner-logo-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 40px -18px rgba(34, 211, 238, .35), 0 0 0 1px rgba(34, 211, 238, .3);
}
body:not(.light-theme) .clients-section .partner-logo-item:hover::after { opacity: 1; inset-inline: 10%; }

body:not(.light-theme) .clients-section .partner-logo-item img,
body:not(.light-theme) .clients-section .partner-logo-item svg {
	max-width: 100% !important;
	max-height: 86px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	border-radius: 10px;
	filter: saturate(.9) brightness(.95);
	transition: filter .35s ease, transform .35s ease;
}
body:not(.light-theme) .clients-section .partner-logo-item:hover img,
body:not(.light-theme) .clients-section .partner-logo-item:hover svg {
	filter: none;
	transform: scale(1.05);
}

body:not(.light-theme) .clients-section .partner-logo-item--cta {
	gap: 12px;
	padding: 18px 20px !important;
	text-decoration: none;
	background: linear-gradient(160deg, rgba(16, 20, 58, .55), rgba(7, 8, 26, .7)) padding-box !important;
	border: 1px dashed rgba(34, 211, 238, .45) !important;
}
body:not(.light-theme) .clients-section .partner-logo-item--cta::after { display: none; }
.partner-cta__ic {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(140deg, #06b6d4, #a855f7);
	box-shadow: 0 0 18px rgba(34, 211, 238, .35);
	transition: transform .35s ease;
}
.partner-cta__tx {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: start;
	line-height: 1.3;
}
.partner-cta__tx strong { color: #f1f5ff; font-size: .95rem; font-weight: 700; }
.partner-cta__tx small { color: #67e8f9; font-size: .78rem; }
body:not(.light-theme) .clients-section .partner-logo-item--cta:hover .partner-cta__ic { transform: rotate(90deg); }

/* Soft edge fade on the moving marquee */
body:not(.light-theme) .tekcraft-partners-ticker-wrap:not(.tekcraft-partners-ticker-wrap--grid) {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
body:not(.light-theme) .tekcraft-partners-row { padding-block: 8px; }

/* -------------------------------------------------------------------- Blog */
body:not(.light-theme) #blog .tekcraft-article-card {
	background:
		linear-gradient(160deg, rgba(16, 20, 58, .9), rgba(7, 8, 26, .95)) padding-box,
		linear-gradient(150deg, rgba(34, 211, 238, .3), rgba(255, 255, 255, .05) 45%, rgba(168, 85, 247, .3)) border-box !important;
	border: 1px solid transparent !important;
	box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease !important;
}
body:not(.light-theme) #blog .tekcraft-article-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px -22px rgba(34, 211, 238, .3), 0 0 0 1px rgba(34, 211, 238, .25) !important;
}
body:not(.light-theme) #blog .tekcraft-article-card__media {
	position: relative;
	overflow: hidden;
}
body:not(.light-theme) #blog .tekcraft-article-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 26, .85));
	pointer-events: none;
}
body:not(.light-theme) #blog .tekcraft-article-card__media img { transition: transform .6s ease; }
body:not(.light-theme) #blog .tekcraft-article-card:hover .tekcraft-article-card__media img { transform: scale(1.06); }
body:not(.light-theme) #blog .tekcraft-article-card__cat {
	z-index: 2;
	background: rgba(7, 8, 26, .65) !important;
	border: 1px solid rgba(34, 211, 238, .4) !important;
	color: #a5f3fc !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
#blog .tekcraft-article-card__meta,
#blog .tekcraft-article-card__meta span { font-family: 'Rubik', sans-serif !important; letter-spacing: 0 !important; }
body:not(.light-theme) #blog .tekcraft-article-card__meta i { color: #22d3ee; }
body:not(.light-theme) #blog .tekcraft-article-card__cta {
	color: #67e8f9 !important;
	font-weight: 600;
}
body:not(.light-theme) #blog .tekcraft-article-card__cta i { transition: transform .3s ease; }
body:not(.light-theme) #blog .tekcraft-article-card:hover .tekcraft-article-card__cta i { transform: translateX(-4px); }
html[dir="ltr"] body:not(.light-theme) #blog .tekcraft-article-card:hover .tekcraft-article-card__cta i { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	body:not(.light-theme) #services .service-card,
	body:not(.light-theme) .clients-section .partner-logo-item,
	body:not(.light-theme) #blog .tekcraft-article-card { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Align the testimonials + blog carousels with the standard 1280px container
   used by every other home section (they were 1392px / 1344px wide, so their
   edges never lined up with the headings and grids above/below them).
   -------------------------------------------------------------------------- */
.qeema-testimonials__container,
.tekcraft-articles-track-wrap {
	max-width: 1280px;
	padding-left: 24px;
	padding-right: 24px;
}

.qeema-testimonials__track-wrap {
	max-width: none;
}

/* 5 article cards in 1232px is too cramped; 4 keeps titles readable. */
.tekcraft-articles-track {
	--visible: 4;
}

@media (max-width: 1100px) {
	.tekcraft-articles-track { --visible: 3; }
}

@media (max-width: 860px) {
	.tekcraft-articles-track { --visible: 2; }
}

@media (max-width: 560px) {
	.tekcraft-articles-track { --visible: 1; }
	.tekcraft-articles-track-wrap { padding-left: 20px; padding-right: 20px; }
}
