/* CSS Custom Properties for Space Theme */
:root {
	--background: #000000;
	--foreground: #ffffff;
	--card: #1a1a2e;
	--card-foreground: #ffffff;
	--primary: #4db6ac;
	--primary-foreground: #000000;
	--secondary: #7b68ee;
	--secondary-foreground: #ffffff;
	--muted: #16213e;
	--muted-foreground: #a0a0a0;
	--accent: #9c88ff;
	--accent-foreground: #ffffff;
	--border: #2a2a4a;
	--radius: 0.5rem;
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
		"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	background: var(--background);
	color: var(--foreground);
	line-height: 1.6;
	overflow-x: hidden;
	min-width: 240px;
}

/* Navigation */
.nav {
	top: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid var(--border);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
}

.nav-icon {
	font-size: 1.5rem;
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-link {
	color: var(--foreground);
	text-decoration: none;
	transition: color 0.3s ease;
}

.nav-link:hover {
	color: var(--accent);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(.2rem .2rem at 2vw 20vh, var(--accent), transparent),
		radial-gradient(.2rem .2rem at 30vw 70vh, var(--primary), transparent),
		radial-gradient(0.1rem 0.1rem at 85vw 40vh, var(--secondary), transparent),
		radial-gradient(0.1rem 0.1rem at 85vw 80vh, var(--accent), transparent),
		radial-gradient(.2rem .2rem at 50vw 80vh, var(--primary), transparent),
		radial-gradient(.2rem .2rem at 5vw 95vh, var(--primary), transparent);
	background-repeat: repeat;
	background-size: 100vw 100vh;
	animation: twinkle 20s linear infinite alternate;
	opacity: 0.6;
}

@keyframes twinkle {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-100px);
	}
}

.hero-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.text-accent {
	color: var(--accent);
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--muted-foreground);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.btn {
	padding: 1rem 2rem;
	border: none;
	border-radius: var(--radius);
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: var(--primary);
	color: var(--primary-foreground);
}

.btn-primary:hover {
	background: #26a69a;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(77, 182, 172, 0.3);
}

.btn-secondary {
	background: transparent;
	color: var(--secondary);
	border: 2px solid var(--secondary);
}

.btn-secondary:hover {
	background: var(--secondary);
	color: var(--secondary-foreground);
	transform: translateY(-2px);
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.floating-code {
	position: relative;
}

.code-fragment {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	margin: 1rem;
	font-family: "Courier New", monospace;
	color: var(--accent);
	animation: float 6s ease-in-out infinite, hdrift 3s ease-in-out infinite;
	box-shadow: 0 5px 15px rgba(156, 136, 255, 0.2);
	--hdrift: 0;
}

.code-fragment:nth-child(1) {
	animation-delay: 0s;
}
.code-fragment:nth-child(2) {
	animation-delay: 2s;
	--hdrift: 1rem;
}
.code-fragment:nth-child(3) {
	animation-delay: 3s;
}

@keyframes float {
	0%,
	100% {
		margin-top: 1rem;
	}
	50% {
		margin-top: 2.5rem;
	}
}

@keyframes hdrift {
	0%,
	100% {
		transform: translateX(calc(-1*var(--hdrift)));
	}
	50% {
		transform: translateX(var(--hdrift));
	}
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Section Styles */
.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--foreground);
}

/* Services Section */
.services {
	padding: 6rem 0;
	background: var(--muted);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}

.service-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(156, 136, 255, 0.2);
}

.service-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.service-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--accent);
}

.service-description {
	color: var(--muted-foreground);
	line-height: 1.6;
}

/* Process Section */
.process {
	padding: 6rem 0;
}

.process-steps {
	display: grid;
	gap: 3rem;
}

.process-step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2rem;
	align-items: center;
}

.step-number {
	font-size: 3rem;
	font-weight: 700;
	color: var(--primary);
	width: 80px;
	height: 80px;
	border: 2px solid var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: auto;
}

.step-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--accent);
}

.step-description {
	color: var(--muted-foreground);
	line-height: 1.6;
}

/* Contact Section */
.contact {
	padding: 6rem 0;
	background: var(--muted);
}

.contact-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.contact-description {
	color: var(--muted-foreground);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-icon {
	font-size: 1.25rem;
}

.contact-form {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	max-width: 40rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--foreground);
}

.form-input,
.form-textarea {
	width: 100%;
	max-width: 100%;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--background);
	color: var(--foreground);
	font-family: inherit;
	transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

.btn-full {
	width: 100%;
}

/* Footer */
.footer {
	padding: 3rem 0;
	border-top: 1px solid var(--border);
}

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

.footer-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.footer-text {
	color: var(--muted-foreground);
}

/* Whatever A.I. thought Responsive Design was... */
@media (max-width: 768px) {
	.nav-container {
		padding: 1rem;
	}

	.nav-links {
		width: 100%;
	}

	.hero-container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.contact-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.process-step {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1rem;
	}

	.hero-buttons {
		justify-content: center;
	}

	.nav-links a {
		width: 100% !important;
		padding: .5rem 1rem;
		background: rgba(255,255,255,.1);
		text-align: center;
	}
	#onlineStatus {
		display: none;
	}

	.nav-links {
		flex-wrap: wrap;
		align-content: center;
		height: 14rem;
		width: 100%;
		padding-top: 1rem;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.container {
		padding: 0 1rem;
	}
}

/* Responsive Design */
@media (min-width: 780px) {
	.nav {
		position: fixed;
	}

	.service-card:nth-of-type(4) {
		grid-column: 2;
	}

	.step-number {
		margin: 0;
	}

	.contact-info {
		min-width: 20rem;
	}
}