:root {
	--primary-red: #ff0000;
	--dark-red: #990000;
	--light-red: #ff3333;
	--black: #000000;
	--dark-bg: #111111;
	--text-color: #cccccc;
}

@font-face {
	font-family: 'daggersquareregular';
	src: url('../fonts/Basilisk/daggersquare-webfont.eot');
	src: url('../fonts/Basilisk/daggersquare-webfont.eot?#iefix') format('embedded-opentype'),
		url('../fonts/Basilisk/daggersquare-webfont.woff2') format('woff2'),
		url('../fonts/Basilisk/daggersquare-webfont.woff') format('woff'),
		url('../fonts/Basilisk/daggersquare-webfont.ttf') format('truetype'),
		url('../fonts/Basilisk/daggersquare-webfont.svg#daggersquareregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body,
html {
	background-color: #000000;
	color: var(--text-color);
	font-family: daggersquareregular;
	overflow-x: hidden;
	scroll-behavior: smooth;
	height: 100%;
	width: 100%;
	position: relative;
}

/* INTRO ANIMATION */
.terminal {
	width: 100%;
	height: 100%;
	color: var(--primary-red);
	font-size: 16px;
	line-height: 1.5;
	overflow: hidden;
	padding: 20px;
	box-sizing: border-box;
	white-space: pre-wrap;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	background-color: var(--black);
	pointer-events: none;
}

.cursor {
	display: inline-block;
	width: 10px;
	height: 20px;
	background-color: var(--primary-red);
	animation: blink 1s infinite;
	margin-left: 4px;
	vertical-align: middle;
}

@keyframes blink {

	0%,
	49% {
		opacity: 1;
	}

	50%,
	100% {
		opacity: 0;
	}
}

.logo-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	height: 500px;
	display: none;
	transform-style: preserve-3d;
	background-color: var(--black);
	z-index: 1001;
	pointer-events: none;
}

.logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	visibility: hidden;
	position: relative;
	z-index: 5;
}

.red-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.wipe-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--black);
	z-index: 2;
	transform-origin: left;
}

.bounce {
	animation: bounce 0.5s;
	transform-origin: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	will-change: transform;
	backface-visibility: hidden;
}

@keyframes bounce {
	0% {
		transform: scale(1) translateY(0);
	}

	50% {
		transform: scale(1.2) translateY(0);
	}

	75% {
		transform: scale(0.9) translateY(0);
	}

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

.fade {
	animation: fade 2s forwards;
}

@keyframes fade {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* CRT EFFECTS */
.crt-scanlines {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 200%;
	background: linear-gradient(rgba(18, 16, 16, 0) 70%, rgba(0, 0, 0, 0.5) 70%);
	background-size: 100% 6px;
	pointer-events: none !important;
	z-index: 1002;
	animation: scanline-scroll 120s linear infinite;
	opacity: 0.8;
}

@keyframes scanline-scroll {
	0% {
		transform: translateY(0);
	}

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

.crt-glow {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none !important;
	z-index: 1001;
	background: radial-gradient(ellipse at center,
			rgba(255, 30, 30, 0.15) 0%,
			rgba(255, 0, 0, 0.08) 40%,
			rgba(0, 0, 0, 0) 100%);
	mix-blend-mode: screen;
	opacity: 0.7;
}

/* WEBSITE CONTENT */
.website-content {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	color: white;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 2s;
	font-size: 24px;
	overflow-y: scroll !important;
	overflow-x: hidden;
	scroll-behavior: smooth;
	z-index: 200;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

/* UTILITY CLASSES */
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.spacer {
	height: 50px;
}

.small-spacer {
	height: 20px;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.text-center {
	text-align: center;
}

/* HEADER */
header {
	padding: 20px 0;
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(5px);
	border-bottom: 2px solid var(--primary-red);
}

.header-logo {
	height: 40px;
	width: auto;
	object-fit: contain;
	display: block;
}

/* Logo-text for fallback (in case the image can't load) */
.logo-text {
	display: none; /* Hide text logo by default */
	font-weight: 900;
	font-size: 32px;
	color: var(--primary-red);
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

nav ul {
	display: flex;
	list-style: none;
	gap: 30px;
}

nav ul li a {
	color: var(--text-color);
	text-decoration: none;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	padding: 5px 10px;
	border: 1px solid transparent;
}

nav ul li a:hover {
	color: var(--primary-red);
	border-bottom: 1px solid var(--primary-red);
}

/* HERO (YouTube trailer background) */
.hero-section {
    position: relative;
    width: 100%;
    height: min(78vh, 1000px);
    background: #000;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-red);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* maintain 16:9 while covering area */
.hero-video iframe,
.hero-video .hero-video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 40px 0 60px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.hero-overlay .container {
    text-align: right;
}

.hero-title {
    font-size: clamp(36px, 6vw, 88px);
    line-height: 1.0;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: right;
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.45);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 24px);
    color: var(--text-color);
    opacity: 0.9;
    text-align: right;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    pointer-events: auto;
    justify-content: flex-end;
}

.cta-ghost {
    display: inline-block;
    padding: 15px 30px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--primary-red);
    transition: all .2s ease;
}
.cta-ghost:hover {
    background: var(--primary-red);
    color: var(--black);
}

.hero-section .hero-video { z-index: 0; }

.cta-button {
	display: inline-block;
	padding: 15px 30px;
	background-color: var(--primary-red);
	color: var(--black);
	text-decoration: none;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.cta-button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: all 0.5s ease;
}

.cta-button:hover {
	background-color: var(--light-red);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.cta-button:hover::before {
	left: 100%;
}

/* CYBER WINDOW STYLES */
.cyber-window {
	border: 3px solid var(--primary-red);
	background-color: var(--black);
	margin: 0 auto;
	width: 100%;
	position: relative;
	overflow: hidden;
	transform-origin: center top;
	transform: scaleY(0.01);
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cyber-window.active {
	transform: scaleY(1); /* Expand y to full size */
}

.cyber-window-title {
	background-color: var(--black);
	color: var(--primary-red);
	padding: 8px 15px;
	font-size: 18px;
	text-transform: uppercase;
	border-bottom: 2px solid var(--primary-red);
}

.cyber-window-content {
	padding: 20px;
	color: var(--text-color);
	min-height: 100px;
	opacity: 0;
	transition: opacity 0.3s ease-in-out 0.2s;
}

.cyber-window.active .cyber-window-content {
	opacity: 1;
}

.cyber-window-content img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cyber-window:hover:not(.screenshot-window) {
    transform: scale(1.01);
}

/* SECTION STYLES */
.about-section {
	padding: 100px 0;
	background-color: var(--dark-bg);
	position: relative;
	z-index: 1;
}

.section-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--primary-red);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 30px;
	text-align: center;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.about-text {
	font-size: 18px;
	line-height: 1.6;
}

.about-text p {
	margin-bottom: 20px;
}

.about-text strong {
	color: var(--primary-red);
	font-weight: bold;
}

.features-section {
	padding: 100px 0;
	background-color: var(--black);
	position: relative;
	z-index: 1;
	overflow: visible;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.feature-card {
	height: 100%;
}

.feature-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-red);
	margin-bottom: 15px;
}

.feature-description {
	font-size: 16px;
	line-height: 1.5;
}

.screenshots-section {
	padding: 100px 0;
	background-color: var(--dark-bg);
	position: relative;
	z-index: 1;
    overflow: visible;
}

.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	position: relative;
	z-index: 1;
}

.screenshot-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
    transition: transform 0.3s ease-in-out;
}

.screenshot-item:hover {
    transform: scale(1.01);
}

.screenshot-window {
	height: 100%;
}

.screenshot-content {
	padding: 0 !important;
	height: calc(100% - 38px);
}

.screenshot-content img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-section {
	padding: 100px 0;
	background-color: var(--black);
	text-align: center;
	position: relative;
	z-index: 1;
	overflow: visible;
}

.cta-text {
	font-size: 24px;
	margin-bottom: 40px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* FOOTER */
footer {
	padding: 50px 0;
	background-color: var(--black);
	border-top: 2px solid var(--primary-red);
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-logo {
	font-weight: 700;
	font-size: 24px;
	color: var(--primary-red);
}

.social-links {
	display: flex;
	gap: 20px;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--primary-red);
	color: var(--primary-red);
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	background-color: var(--primary-red);
	color: var(--black);
}

.copyright {
	text-align: center;
	margin-top: 30px;
	font-size: 14px;
	color: var(--text-color);
}

/* TERMINAL TEXT EFFECT */
.terminal-text {
	overflow: hidden;
	white-space: nowrap;
	margin: 0;
	letter-spacing: 0.15em;
	animation: typing 3.5s steps(40, end);
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 3005; /* EVAN! If you want this to be BELOW the CRT effect, change this value to be BELOW 1002 */
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.image-modal.open {
  display: flex;
}

.image-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.image-modal_content {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  padding: 12px;
  border: 3px solid var(--primary-red);
  background: #000;
  box-shadow: 0 10px 40px rgba(255,0,0,.25);
  transform: scale(.98);
  animation: modal-pop 120ms cubic-bezier(.34,1.56,.64,1) forwards;
  pointer-events: auto;
}

@keyframes modal-pop { to { transform: scale(1); } }

.image-modal_content img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.image-modal_caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-color);
  text-align: center;
  opacity: .85;
}

.image-modal_close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 0px;
  border: 3px solid var(--primary-red);
  background: #000;
  color: var(--primary-red);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease;
}

.image-modal_close:hover { transform: scale(1.06); }
.image-modal_close:active { transform: scale(.98); }

/* lock background scroll while modal is open */
html.modal-open, body.modal-open { overflow: hidden !important; }

@keyframes typing {
	from {
		width: 0
	}

	to {
		width: 100%
	}
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
	.hero-title {
		font-size: 60px;
	}

	.about-content,
	.features-grid,
	.screenshots-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media (max-width: 768px) {
	header {
		padding: 15px 0;
	}

	.logo-text {
		font-size: 24px;
	}

	nav ul {
		gap: 15px;
	}

	nav ul li a {
		font-size: 14px;
	}

	.hero-title {
		font-size: 40px;
	}

	.hero-subtitle {
		font-size: 18px;
	}

	.section-title {
		font-size: 36px;
	}

	.feature-title {
		font-size: 20px;
	}

	.footer-content {
		flex-direction: column;
		gap: 20px;
	}

	.logo-container {
		width: 300px;
		height: 300px;
	}
}

.skip-intro {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 0, 0, 0.7);
    font-size: 14px;
    z-index: 1003;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    animation: pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 0.6; }
    100% { opacity: 0.9; }
}