:root {
	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-slow: 0.5s ease;
}

body.dark-theme {
	--bg-color: #050505;
	--text-color: #f3f4f6;
	--text-muted: #9ca3af;
	--accent-purple: #7e22ce;
	--accent-pink: #ec4899;
	--glass-bg: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.08);
	--card-bg: #111111;
	--term-bg: #0a0a0a;
	--term-border: #333;
}

body.light-theme {
	--bg-color: #f9fafb;
	--text-color: #111827;
	--text-muted: #4b5563;
	--accent-purple: #6b21a8;
	--accent-pink: #db2777;
	--glass-bg: rgba(0, 0, 0, 0.03);
	--glass-border: rgba(0, 0, 0, 0.1);
	--card-bg: #ffffff;
	--term-bg: #1f2937;
	--term-border: #d1d5db;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Outfit', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	transition:
		background-color var(--transition-slow),
		color var(--transition-slow);
	overflow-x: hidden;
}

/* Background Glow Effect */
.background-glow {
	position: fixed;
	top: -20%;
	left: -10%;
	width: 60vw;
	height: 60vw;
	background: radial-gradient(
		circle,
		rgba(126, 34, 206, 0.15) 0%,
		rgba(0, 0, 0, 0) 70%
	);
	z-index: -1;
	pointer-events: none;
}

body.light-theme .background-glow {
	background: radial-gradient(
		circle,
		rgba(126, 34, 206, 0.08) 0%,
		rgba(255, 255, 255, 0) 70%
	);
}

/* Navbar */
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 5%;
	position: fixed;
	top: 0;
	width: 100%;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background-color: var(--glass-bg);
	border-bottom: 1px solid var(--glass-border);
	z-index: 1000;
}

.logo {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 1px;
}

.logo-accent {
	color: var(--accent-pink);
}

.nav-links {
	flex: 1;
	display: flex;
	justify-content: center;
	gap: 2rem;
}

.nav-links a {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: color var(--transition-fast);
}

.nav-links a:hover {
	color: var(--accent-pink);
}

.controls {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.6rem;
}

.icon-btn,
.lang-btn {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: var(--text-color);
	cursor: pointer;
	border-radius: 10px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-fast);
	font-family: inherit;
	font-weight: 600;
	font-size: 0.85rem;
	box-sizing: border-box;
	vertical-align: middle;
}

.icon-btn {
	width: 38px;
	padding: 0;
}

.icon-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}

.lang-btn {
	width: 38px;
	padding: 0;
}

.icon-btn:hover,
.lang-btn:hover {
	background: var(--glass-border);
	transform: translateY(-2px);
}

.donate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(236, 72, 153, 0.15);
	color: var(--accent-pink);
	height: 38px;
	padding: 0 0.85rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	box-sizing: border-box;
	transition: all var(--transition-fast);
}

.donate-btn:hover {
	transform: translateY(-2px);
	background: var(--accent-pink);
	color: #fff;
	box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.github-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--text-color);
	color: var(--bg-color);
	height: 38px;
	padding: 0 0.85rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	box-sizing: border-box;
	transition: all var(--transition-fast);
}

.github-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

body.light-theme .github-btn {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.github-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(126, 34, 206, 0.2);
	color: var(--accent-pink);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	margin-left: 4px;
}

body.light-theme .github-stars {
	background: rgba(107, 33, 168, 0.15);
	color: var(--accent-purple);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 8rem 5% 4rem;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin-bottom: 4rem;
	animation: fadeUp 1s ease;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.gradient-text {
	background: linear-gradient(
		to right,
		var(--accent-pink),
		var(--accent-purple)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin-bottom: 2.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.primary-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
	color: #fff;
	padding: 0.8rem 1.8rem;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	transition:
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
	box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.primary-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
}

.secondary-btn {
	padding: 0.8rem 1.8rem;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	color: var(--text-color);
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	transition: all var(--transition-fast);
}

.secondary-btn:hover {
	background: var(--glass-border);
	transform: translateY(-3px);
}

/* Terminal Mockup */
.hero-mockup {
	width: 100%;
	max-width: 700px;
	animation: fadeUp 1.2s ease;
}

.terminal-window {
	background: var(--term-bg);
	border-radius: 12px;
	border: 1px solid var(--term-border);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	text-align: left;
}

body.light-theme .terminal-window {
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.terminal-header {
	background: var(--glass-bg);
	border-bottom: 1px solid var(--term-border);
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	position: relative;
}

.terminal-buttons {
	display: flex;
	gap: 6px;
}

.terminal-buttons span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.terminal-buttons span:nth-child(1) {
	background: #ff5f56;
}
.terminal-buttons span:nth-child(2) {
	background: #ffbd2e;
}
.terminal-buttons span:nth-child(3) {
	background: #27c93f;
}

.terminal-title {
	position: absolute;
	width: 100%;
	left: 0;
	text-align: center;
	font-size: 0.8rem;
	color: #888;
	pointer-events: none;
}

.terminal-body {
	padding: 1.5rem;
	font-family: 'Fira Code', monospace;
	font-size: 0.9rem;
	color: #d1d5db;
}

.term-line {
	margin-bottom: 0.4rem;
}

.term-user {
	color: #ec4899;
}
.term-dir {
	color: #3b82f6;
}
.text-success,
.success {
	color: #10b981;
}
.info {
	color: #8b5cf6;
}
.prompt {
	color: #ec4899;
}
.text-dim {
	color: #6b7280;
}

.blinking-cursor {
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* Section Common */
.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.section-header p {
	color: var(--text-muted);
}

/* Features Grid */
.features-section {
	padding: 5rem 5%;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.feature-card {
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	padding: 2rem;
	border-radius: 16px;
	transition:
		transform var(--transition-fast),
		border-color var(--transition-fast);
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-pink);
}

.feature-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.feature-icon svg {
	color: #fff;
}

.pink-glow {
	background: linear-gradient(135deg, #ec4899, #be185d);
	box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.purple-glow {
	background: linear-gradient(135deg, #7e22ce, #581c87);
	box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
}

.feature-card h3 {
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.feature-card p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* Terminal Showcase Section */
.terminal-section {
	padding: 5rem 5%;
	background: var(--glass-bg);
}

.split-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: 1100px;
	margin: 0 auto;
	align-items: center;
}

.feature-list {
	list-style: none;
	margin-top: 2rem;
}

.feature-list li {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.feature-list .icon {
	font-size: 1.5rem;
}

.feature-list strong {
	display: block;
	margin-bottom: 0.25rem;
}

.feature-list p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.glass-box {
	background: var(--card-bg);
	border: 1px solid var(--glass-border);
	border-radius: 16px;
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
}

.glass-box::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(
		circle,
		rgba(236, 72, 153, 0.1) 0%,
		rgba(0, 0, 0, 0) 70%
	);
	z-index: 0;
}

.code-snippet {
	position: relative;
	z-index: 1;
	font-family: 'Fira Code', monospace;
	font-size: 0.9rem;
}

/* Security Section */
.security-section {
	padding: 5rem 5%;
}

.security-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.sec-card {
	background: var(--glass-bg);
	border-left: 4px solid var(--accent-purple);
	padding: 1.5rem;
	border-radius: 8px;
}

.sec-card h4 {
	margin-bottom: 0.5rem;
}

.sec-card p {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Footer */
footer {
	padding: 3rem 5%;
	border-top: 1px solid var(--glass-border);
	margin-top: 4rem;
}

.footer-content {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.footer-logo {
	font-size: 1.25rem;
	font-weight: 800;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	margin-top: 1rem;
}

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-links a:hover {
	color: var(--accent-pink);
}

.copyright {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: 1rem;
}

/* Animations */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Nav Overlay */
.nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-fast);
}

.nav-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.mobile-menu-btn {
	display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
	.navbar {
		padding: 1rem 4%;
	}

	.mobile-menu-btn {
		display: flex;
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 75vw;
		max-width: 300px;
		height: 100vh;
		background: var(--bg-color);
		border-left: 1px solid var(--glass-border);
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		padding: 5.5rem 2rem 2rem;
		gap: 1.5rem;
		transition: right var(--transition-fast);
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
		z-index: 999;
	}

	body.light-theme .nav-links {
		background: #ffffff;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
	}

	.nav-links.active {
		right: 0;
	}

	.nav-links a {
		font-size: 1.15rem;
		width: 100%;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--glass-border);
	}

	.split-layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.features-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 6.5rem 4% 3rem;
		min-height: auto;
	}

	.hero-title {
		font-size: clamp(2rem, 7.5vw, 3rem);
	}

	.hero-subtitle {
		font-size: 1rem;
		margin-bottom: 2rem;
		padding: 0 0.5rem;
	}

	.hero-actions {
		flex-direction: column;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
		gap: 0.8rem;
	}

	.primary-btn,
	.secondary-btn {
		width: 100%;
		justify-content: center;
		padding: 0.9rem 1.5rem;
		font-size: 1rem;
	}

	.terminal-body {
		padding: 1rem;
		font-size: 0.82rem;
		overflow-x: auto;
	}

	.term-line {
		white-space: pre-wrap;
		word-break: break-word;
	}

	.features-section,
	.terminal-section,
	.security-section {
		padding: 3.5rem 4%;
	}

	.section-header h2 {
		font-size: 1.85rem;
	}

	.security-cards {
		grid-template-columns: 1fr;
	}

	/* Controls optimization on mobile */
	.controls {
		gap: 0.4rem;
	}

	.icon-btn,
	.lang-btn,
	.donate-btn,
	.github-btn,
	.mobile-menu-btn {
		height: 36px;
		border-radius: 8px;
	}

	.icon-btn,
	.lang-btn,
	.mobile-menu-btn {
		width: 36px;
		padding: 0;
	}

	.donate-btn {
		width: 36px;
		padding: 0;
	}

	.donate-btn span {
		display: none;
	}

	.github-btn {
		height: 36px;
		padding: 0 0.5rem;
	}

	.github-btn > span:not(.github-stars) {
		display: none;
	}

	.github-stars {
		margin-left: 0;
		padding: 2px 5px;
		font-size: 0.75rem;
	}
}

@media (max-width: 480px) {
	.logo {
		font-size: 1.25rem;
	}

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

	.features-grid {
		grid-template-columns: 1fr;
	}

	.feature-card {
		padding: 1.5rem;
	}

	.sec-card {
		padding: 1.2rem;
	}

	.terminal-header {
		padding: 0.6rem 0.8rem;
	}

	.terminal-title {
		font-size: 0.72rem;
	}

	.terminal-body {
		font-size: 0.76rem;
		padding: 0.8rem;
	}

	footer {
		padding: 2.5rem 4%;
	}

	.footer-links {
		flex-direction: column;
		gap: 0.75rem;
	}
}
