/*
 Theme Name:   TheGem Child - SwordSec
 Theme URI:    https://swordsec.com
 Description:  SwordSec custom child theme for TheGem
 Author:       SwordSec
 Author URI:   https://swordsec.com
 Template:     thegem
 Version:      1.0.0
 Text Domain:  thegem-child
*/

/* ========== SwordSec Hero Section ========== */
.swordsec-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0a0e1a;
	overflow: hidden;
	z-index: 1;
}

.swordsec-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 188, 212, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 188, 212, 0.06) 1px, transparent 1px);
	background-size: 60px 60px;
	animation: heroGridPulse 4s ease-in-out infinite;
}

.swordsec-hero::after {
	content: '';
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
	top: -100px;
	right: -100px;
	animation: heroOrbFloat 8s ease-in-out infinite;
}

.swordsec-hero-orb2 {
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(53, 64, 147, 0.15) 0%, transparent 70%);
	bottom: -150px;
	left: -100px;
	animation: heroOrbFloat 10s ease-in-out infinite reverse;
	z-index: 0;
}

.swordsec-hero-scanline {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
			transparent 0%,
			rgba(0, 188, 212, 0.03) 50%,
			transparent 100%);
	background-size: 100% 4px;
	pointer-events: none;
	z-index: 1;
}

.swordsec-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 140px 24px 100px;
	max-width: 900px;
}

.swordsec-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 188, 212, 0.1);
	border: 1px solid rgba(0, 188, 212, 0.25);
	border-radius: 100px;
	padding: 8px 20px;
	margin-bottom: 32px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #00bcd4;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 0.2s forwards;
}

.swordsec-hero-badge svg {
	width: 16px;
	height: 16px;
	fill: #00bcd4;
}

.swordsec-hero h1 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: clamp(32px, 5.5vw, 64px);
	font-weight: 700;
	line-height: 1.1;
	color: #ffffff;
	margin: 0 0 12px 0;
	letter-spacing: -1px;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 0.4s forwards;
}

.swordsec-hero h1 .hero-accent {
	background: linear-gradient(135deg, #00bcd4, #4fc3f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.swordsec-hero-sub {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 auto 48px;
	max-width: 640px;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 0.6s forwards;
}

.swordsec-hero-cta {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 0.8s forwards;
}

.swordsec-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 6px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	letter-spacing: 0.3px;
}

.swordsec-hero-btn.primary {
	background: linear-gradient(135deg, #00bcd4, #0097a7);
	color: #fff;
	border: none;
	box-shadow: 0 4px 24px rgba(0, 188, 212, 0.3);
}

.swordsec-hero-btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 188, 212, 0.45);
	color: #fff;
	text-decoration: none;
}

.swordsec-hero-btn.secondary {
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.swordsec-hero-btn.secondary:hover {
	border-color: rgba(0, 188, 212, 0.5);
	color: #00bcd4;
	text-decoration: none;
	transform: translateY(-2px);
}

.swordsec-hero-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 1s forwards;
}

.swordsec-hero-stat {
	text-align: center;
}

.swordsec-hero-stat-number {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #00bcd4;
	line-height: 1;
	margin-bottom: 6px;
}

.swordsec-hero-stat-label {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.swordsec-hero-clients {
	width: 100%;
	max-width: 1100px;
	margin: 48px auto 0;
	overflow: hidden;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 1.1s forwards;
}

.swordsec-hero-clients-label {
	text-align: center;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	margin-bottom: 20px;
}

.swordsec-hero-clients-track-wrapper {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.swordsec-hero-clients-track {
	display: flex;
	align-items: center;
	gap: 40px;
	animation: swordsecClientScroll 25s linear infinite;
	width: max-content;
}

.swordsec-hero-client-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: #EFEFEF;
	transition: border-color 0.3s ease, background 0.3s ease;
	opacity: 0.5;
}

.swordsec-hero-client-item:hover {
	opacity: 1;
}

.swordsec-hero-client-item img {
	height: 70px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: grayscale(100%) brightness(1);
	/*opacity: 0.6;*/
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.swordsec-hero-client-item:hover img {
	filter: grayscale(0%) brightness(1);
	opacity: 1;
}

@keyframes swordsecClientScroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.swordsec-hero-scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	opacity: 0;
	animation: heroFadeUp 0.8s ease-out 1.4s forwards;
}

.swordsec-hero-scroll-inner {
	width: 24px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	position: relative;
}

.swordsec-hero-scroll-inner::after {
	content: '';
	width: 4px;
	height: 8px;
	background: #00bcd4;
	border-radius: 2px;
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	animation: heroScrollDot 2s ease-in-out infinite;
}

/* Hero animations */
@keyframes heroGridPulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

@keyframes heroOrbFloat {

	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	50% {
		transform: translate(30px, -40px) scale(1.1);
	}
}

@keyframes heroFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes heroScrollDot {

	0%,
	100% {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}

	50% {
		opacity: 0.3;
		transform: translateX(-50%) translateY(12px);
	}
}

/* Hero responsive */
@media (max-width: 768px) {
	.swordsec-hero {
		min-height: auto;
		padding-top: 0;
		padding-bottom: 0;
	}

	.swordsec-hero-content {
		padding: 120px 20px 80px;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.swordsec-hero h1 {
		font-size: clamp(28px, 7vw, 48px);
		line-height: 1.15;
	}

	.swordsec-hero-sub {
		font-size: clamp(14px, 3.5vw, 18px);
		margin-bottom: 32px;
		padding: 0 16px;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.swordsec-hero-stats {
		gap: 24px;
		margin-top: 40px;
		padding-top: 24px;
		flex-wrap: wrap;
	}

	.swordsec-hero-stat-number {
		font-size: 24px;
	}

	.swordsec-hero-btn {
		padding: 12px 24px;
		font-size: 14px;
	}

	.swordsec-hero-clients {
		margin-top: 32px;
	}

	.swordsec-hero-client-item img {
		height: 24px;
	}

	.swordsec-hero-clients-track {
		gap: 24px;
	}

	.swordsec-hero-scroll {
		display: none;
	}
}

@media (max-width: 480px) {
	.swordsec-hero-content {
		padding: 100px 16px 60px;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.swordsec-hero h1 {
		font-size: clamp(24px, 8vw, 36px);
	}

	.swordsec-hero-sub {
		padding: 0 16px;
		font-size: 14px;
		line-height: 1.5;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.swordsec-hero-stats {
		gap: 16px;
	}

	.swordsec-hero-stat-number {
		font-size: 20px;
	}

	.swordsec-hero-stat-label {
		font-size: 11px;
	}
}

/* Hide RevSlider on front page */
.home .slideshow-preloader,
.home .gem-slideshow,
.home .gem-slideshow-with-preloader {
	display: none !important;
}

/* Fix FontAwesome icons in service boxes */
.gem-icon-pack-fontawesome .gem-icon-inner {
	font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important;
	font-weight: 900 !important;
}

.gem-icon-pack-fontawesome .gem-icon-inner .back-angle {
	font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important;
	font-weight: 900 !important;
	display: inline-block !important;
}

.gem-icon-pack-fontawesome .gem-icon-half-1 .back-angle,
.gem-icon-pack-fontawesome .gem-icon-half-2 .back-angle {
	font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important;
	font-weight: 900 !important;
}

/* Force navigation visible even when TheGem adds no-menu class */
.home .header-main.no-menu #primary-navigation,
.page .header-main.no-menu #primary-navigation,
.single .header-main.no-menu #primary-navigation,
.archive .header-main.no-menu #primary-navigation,
.header-main.no-menu #primary-navigation {
	display: table-cell !important;
	vertical-align: middle !important;
}

.header-main.no-menu .primary-navigation {
	display: block !important;
}