/* ============================================
   ShiftinBits – Extracted Stylesheet
   ============================================ */

/* ----- Base styles ----- */
body {
	font-family: 'Inter', sans-serif;
	background-color: #001931;
}

html {
	scroll-behavior: smooth;
}

/* ----- Keyframe animations ----- */
@keyframes float {

	0%,
	100% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-20px);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

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

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}

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

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}

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

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}

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

@keyframes pulseGlow {
	0% {
		box-shadow: 0 0 20px rgba(36, 136, 198, 0.3);
	}

	100% {
		box-shadow: 0 0 40px rgba(36, 136, 198, 0.6);
	}
}

@keyframes circuitFlow {
	0% {
		opacity: 0;
		transform: translateX(-100%);
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateX(100%);
	}
}

@keyframes binaryRain {
	0% {
		transform: translateY(-100vh);
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(100vh);
		opacity: 0;
	}
}

@keyframes dataStream {

	0%,
	100% {
		transform: scaleX(0);
		opacity: 0;
	}

	50% {
		transform: scaleX(1);
		opacity: 1;
	}
}

@keyframes hologram-gradient {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

@keyframes hologram-glow {
	0% {
		filter: drop-shadow(0 0 3px rgba(36, 136, 198, 0.5)) drop-shadow(0 0 10px rgba(36, 136, 198, 0.2));
	}

	100% {
		filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.7)) drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
	}
}

@keyframes hologram-glitch {

	0%,
	90%,
	100% {
		transform: translate(0, 0);
		opacity: 0;
	}

	91%,
	94% {
		transform: translate(1px, -1px);
		opacity: 0.3;
	}

	92%,
	93% {
		transform: translate(-1px, 1px);
		opacity: 0.2;
	}
}

@keyframes hologram-scan {
	0% {
		transform: translateY(-100%);
		opacity: 0;
	}

	10%,
	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(200%);
		opacity: 0;
	}
}

@keyframes scan-sweep {
	0% {
		background-position: 0% 0%;
	}

	100% {
		background-position: 0% 100%;
	}
}

@keyframes data-flow {
	0% {
		transform: translateY(-100%);
		opacity: 0;
	}

	10%,
	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(100%);
		opacity: 0;
	}
}

/* ----- Glassmorphism effects ----- */
.tech-glass {
	background: rgba(36, 136, 198, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(36, 136, 198, 0.2);
}

.tech-glass-card {
	background: rgba(36, 136, 198, 0.08);
	backdrop-filter: blur(15px);
	border: 1px solid rgba(36, 136, 198, 0.3);
}

/* ----- Gradient backgrounds ----- */
.hero-tech-gradient {
	background:
		radial-gradient(circle at 20% 30%, rgba(36, 136, 198, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
		linear-gradient(135deg, #001931 0%, #002c4a 50%, #003d5c 100%);
}

.section-tech-gradient {
	background: linear-gradient(180deg, #001931 0%, #002c4a 100%);
}

/* ----- Decorative patterns & overlays ----- */
.circuit-pattern {
	background-image:
		linear-gradient(90deg, rgba(36, 136, 198, 0.1) 1px, transparent 1px),
		linear-gradient(rgba(36, 136, 198, 0.1) 1px, transparent 1px);
	background-size: 20px 20px;
}

.binary-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(2px 2px at 20px 30px, rgba(36, 136, 198, 0.3), transparent),
		radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.2), transparent),
		radial-gradient(1px 1px at 90px 40px, rgba(36, 136, 198, 0.3), transparent),
		radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.2), transparent);
	background-size: 110px 110px, 130px 130px, 120px 120px, 140px 140px;
	background-repeat: repeat;
	animation: binary-rain 8s linear infinite;
	pointer-events: none;
}

.digital-grid {
	background-image:
		linear-gradient(rgba(36, 136, 198, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(36, 136, 198, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
}

.binary-text::after {
	content: '01001000 01100101 01101100 01101100 01101111 01010111 01101111 01110010 01101100 01100100';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-family: 'Courier New', monospace;
	font-size: 10px;
	color: rgba(36, 136, 198, 0.1);
	white-space: pre-wrap;
	overflow: hidden;
	animation: binary-rain 12s linear infinite;
	pointer-events: none;
	z-index: -1;
}

.circuit-node {
	position: absolute;
	width: 4px;
	height: 4px;
	background: #2488c6;
	border-radius: 50%;
	box-shadow: 0 0 10px #2488c6;
	animation: pulse-glow 2s ease-in-out infinite alternate;
}

.circuit-node::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	width: 8px;
	height: 8px;
	border: 1px solid #2488c6;
	border-radius: 50%;
	opacity: 0.3;
}

/* ----- Glow effects ----- */
.tech-glow {
	box-shadow: 0 0 20px rgba(36, 136, 198, 0.4);
}

.tech-glow-hover:hover {
	box-shadow: 0 0 30px rgba(36, 136, 198, 0.6);
}

.tech-svg-glow-hover:hover {
	filter: drop-shadow(0 0 8px rgba(36, 136, 198, 0.6)) drop-shadow(0 0 16px rgba(36, 136, 198, 0.4));
	transition: filter 0.3s ease;
}

/* ----- Digital hologram effect ----- */
.digital-hologram {
	position: relative;
	display: inline-block;
}

.digital-hologram-text {
	background: linear-gradient(45deg, #2488c6, #00d4ff, #2488c6, #00d4ff);
	background-size: 400% 400%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: hologram-gradient 3s ease-in-out infinite,
		hologram-glow 2s ease-in-out infinite alternate;
	filter: drop-shadow(0 0 3px rgba(36, 136, 198, 0.5));
}

.digital-hologram::before {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	background: linear-gradient(45deg, #2488c6, #00d4ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: hologram-glitch 4s ease-in-out infinite;
	z-index: -1;
}

.digital-hologram::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(transparent 48%, rgba(0, 212, 255, 0.2) 49%, rgba(0, 212, 255, 0.2) 51%, transparent 52%);
	background-size: 100% 8px;
	animation: hologram-scan 2.5s linear infinite;
	pointer-events: none;
	mix-blend-mode: screen;
}

.scan-lines {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(transparent 0%,
			rgba(36, 136, 198, 0.1) 2%,
			transparent 3%,
			transparent 18%,
			rgba(0, 212, 255, 0.1) 20%,
			transparent 21%,
			transparent 100%);
	background-size: 100% 12px;
	animation: scan-sweep 3s linear infinite;
	pointer-events: none;
	z-index: 1;
}

.data-stream {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	font-family: 'Courier New', monospace;
	font-size: 8px;
	color: rgba(0, 212, 255, 0.15);
	white-space: pre;
	overflow: hidden;
	z-index: -2;
	animation: data-flow 6s linear infinite;
	pointer-events: none;
}

/* ----- Accessibility helpers ----- */
.focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----- Scroll animations ----- */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ----- Button styles ----- */
.tech-btn-primary {
	background: linear-gradient(135deg, #2488c6 0%, #00d4ff 100%);
	transition: all 0.3s ease;
	border: 1px solid rgba(36, 136, 198, 0.3);
}

.tech-btn-primary:hover {
	background: linear-gradient(135deg, #1c6ea0 0%, #00b8e6 100%);
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(36, 136, 198, 0.6);
}

.tech-btn-secondary {
	background: rgba(36, 136, 198, 0.1);
	transition: all 0.3s ease;
}

.tech-btn-secondary:hover {
	background: rgba(36, 136, 198, 0.2);
	transform: translateY(-2px);
}

.tech-btn-secondary-gradient {
	background: linear-gradient(135deg, #001931 0%, #002d46 50%, #001931 100%);
	border: 1px solid rgba(36, 136, 198, 0.4);
	transition: all 0.3s ease;
}

.tech-btn-secondary-gradient:hover {
	background: linear-gradient(135deg, #003a5c 0%, #1c6ea0 50%, #003a5c 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -5px rgba(36, 136, 198, 0.4);
}

/* ----- JS-triggered styles ----- */
.reduce-motion * {
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
}

.user-is-tabbing *:focus {
	outline: 2px solid #3b82f6 !important;
	outline-offset: 2px !important;
}

/* ----- Media queries ----- */
@media (prefers-reduced-motion: reduce) {
	.digital-hologram-text {
		animation: none;
		background: linear-gradient(45deg, #2488c6, #00d4ff);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.digital-hologram::before,
	.digital-hologram::after,
	.scan-lines,
	.data-stream {
		animation: none;
		opacity: 0.3;
	}
}

@media (prefers-contrast: high) {

	.tech-glass,
	.tech-glass-card {
		background: rgba(36, 136, 198, 0.95);
		border: 2px solid #2488c6;
	}

	.circuit-node {
		box-shadow: 0 0 20px #2488c6;
	}
}

@media print {

	.hero-tech-gradient,
	.section-tech-gradient,
	body {
		background: white !important;
		color: black !important;
	}

	.animate-float,
	.animate-bounce,
	.animate-pulse,
	.animate-pulse-glow {
		animation: none !important;
	}

	.tech-glass,
	.tech-glass-card {
		background: white !important;
		border: 1px solid #ccc !important;
	}

	.circuit-pattern,
	.binary-overlay,
	.digital-grid,
	.binary-text {
		background: none !important;
	}

	.circuit-node {
		display: none !important;
	}
}
