/* --------------------------------------------------
   GLOBAL BLACK THEME
-------------------------------------------------- */
html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #000 !important;
	color: #f7d774;
	overflow: hidden;
	font-family: 'Orbitron', 'Segoe UI', sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	text-align: center;
}

/* --------------------------------------------------
   GOLD GLOW TITLES
-------------------------------------------------- */
.title {
	z-index: 10;
	font-size: 4rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	text-shadow:
		0 0 6px #f7d774,
		0 0 15px rgba(255, 215, 100, 0.8),
		0 0 35px rgba(255, 200, 80, 0.7);
}

/* Subtitle: centered as a block, static part should not move */
.subtitle {
	display: inline-flex;
	z-index: 10;
	font-size: 1.3rem;
	letter-spacing: 0.15em;
	opacity: 0.85;
	text-shadow:
		0 0 6px #f7d774,
		0 0 12px rgba(255, 215, 100, 0.6);
	color: #f7d774;

	/* Center the whole line within the page column */
	justify-content: center;
	align-items: baseline;
	gap: 0.3rem;
}

/* --------------------------------------------------
   CRT SCANLINES
-------------------------------------------------- */
.scanlines {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255, 215, 100, 0.04) 0px,
		rgba(255, 215, 100, 0.04) 1px,
		transparent 2px,
		transparent 4px
	);
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 5;
	opacity: 0.35;
}

/* --------------------------------------------------
   CYBERPUNK ATMOSPHERE GLOW
-------------------------------------------------- */
.glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at center,
		rgba(255, 215, 100, 0.15) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

/* --------------------------------------------------
   CYBERPUNK ANIMATED GRID FLOOR
-------------------------------------------------- */
.grid-floor {
	position: absolute;
	bottom: 0;
	width: 200%;
	height: 110vh;
	transform: perspective(800px) rotateX(75deg);
	background-size: 50px 50px;
	background-image:
		linear-gradient(
			to right,
			rgba(255, 215, 100, 0.25) 1px,
			transparent 1px
		),
		linear-gradient(
			to bottom,
			rgba(255, 215, 100, 0.25) 1px,
			transparent 1px
		);
	animation: grid-scroll 6s linear infinite;
	z-index: 1;
	opacity: 0.45;
	filter: drop-shadow(0 0 10px rgba(255, 215, 100, 0.4));
}

@keyframes grid-scroll {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 0 200px;
	}
}

/* --------------------------------------------------
   H4 BLOCK WITH IMAGE + TEXT
-------------------------------------------------- */
.h4-block {
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.h4-image {
	width: 140px;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 0 10px rgba(255, 215, 100, 0.5));
}

.text-content h4 {
	margin: 0.4rem 0;
}

/* --------------------------------------------------
   CONTACT LINK
-------------------------------------------------- */
.contact-email {
	color: #4da3ff;
	text-decoration: none;
	font-weight: 600;
}

.contact-email:hover {
	text-decoration: underline;
}

/* --------------------------------------------------
   DYNAMIC TEXT (FIXED WINDOW, SINGLE SPAN)
-------------------------------------------------- */
.dynamic-text {
	display: inline-block;
	text-align: left;

	/* Fixed window wide enough for the longest label ("Senior Engineers")
	   with your letter-spacing — bumped to 22ch to avoid wrapping */
	width: 22ch;
	white-space: nowrap; /* do not wrap inside the window */
}

/* The current changing text */
.text-layer {
	display: inline-block;
	transition: opacity 0.5s ease-in-out;
	white-space: nowrap; /* extra safety: no wrapping on the text itself */
}

/* Fade keyframes */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* --------------------------------------------------
   RESPONSIVE TWEAKS
-------------------------------------------------- */
@media (max-width: 768px) {
	.title {
		font-size: 2.5rem;
		letter-spacing: 0.15em;
	}

	.subtitle {
		font-size: 1rem;
	}

	.h4-block {
		flex-direction: column;
	}
}
