/* --- RESET & VARS --- */
:root {
	--bg-dark: #050505;
	--card-bg: #0f0f0f;
	--border: #262626;
	--text: #e5e5e5;
	--text-muted: #888;
	--accent: #22c55e;
	/* Terminal Green */
	--accent-glow: rgba(34, 197, 94, 0.2);
	--font-mono: 'Ubuntu Mono', monospace;
	--font-sans: 'Inter', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing:
		border-box;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body::-webkit-scrollbar {
	display: none;
}

body {
	background-color: var(--bg-dark);
	color: var(--text);
	font-family: var(--font-sans);
	overflow-x: hidden;
	min-height: 100vh;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.main-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto auto;
	gap: 15px;
	margin-bottom: 40px;
}

.card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 25px;
}

.card-profile {
	grid-column: span 2;
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.profile-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #222;
}

.status-badge {
	background: var(--accent-glow);
	color: var(--accent);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-family: var(--font-mono);
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.profile-content p {
	font-size: 0.9rem;
}

.pulse {
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.role-text {
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: 1.1rem;
	margin: 5px 0 10px 0;
}

/* 2. Socials */
.card-socials {
	grid-column: span 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.social-link {
	font-size: 1.5rem;
	color: var(--text-muted);
	transition: 0.2s;
	padding: 10px;
	border-radius: 12px;
}

.social-link:hover {
	color: var(--accent);
	filter: drop-shadow(0 0 5px var(--accent));
}

.card-stat {
	grid-column: span 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.stat-item span {
	font-size: 0.7rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.stat-item h3 {
	font-size: 1.2rem;
}

.card-stack {
	grid-column: span 2;
	display: flex;
	align-items: center;
	overflow: hidden;
	position: relative;
	padding: 0;
}

.stack-label {
	position: absolute;
	left: 20px;
	z-index: 2;
	padding: 0 10px 0 15px;
	font-family: var(--font-mono);
	color: var(--text-muted);
	height: 100%;
	display: flex;
	align-items: center;
	background: rgba(15, 15, 15, 0.692);
	border-right: 1px solid var(--border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 23%);
	mask-image: linear-gradient(to right, transparent 0%, black 23%);
}

.marquee-wrapper {
	width: 100%;
	display: flex;
}

.marquee-content {
	display: flex;
	gap: 40px;
	padding: 25px 0 25px 0;
	animation: scroll 30s linear infinite;
	padding-left: 100px;
}

.marquee-content i {
	font-size: 2rem;
	color: #555;
	transition: 0.3s;
}

.marquee-content i:hover {
	color: var(--accent);
	filter: drop-shadow(0 0 5px var(--accent));
}

/* --- TERMINAL --- */
.terminal-section {
	margin: 40px 0;
}

.terminal-window {
	background: #0d0d0d;
	border: 1px solid #333;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	font-family: var(--font-mono);
	overflow: hidden;
}

.terminal-header {
	background: #1a1a1a;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dots {
	display: flex;
	gap: 6px;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.red {
	background: #ff5f56;
}

.yellow {
	background: #ffbd2e;
}

.green {
	background: #27c93f;
}

.terminal-title {
	color: #666;
	font-size: 0.8rem;
}

.terminal-body {
	padding: 20px;
	min-height: 200px;
	font-size: 1rem;
}

.output {
	margin-bottom: 5px;
	color: var(--text);
}

.prompt {
	color: var(--accent);
	margin-right: 10px;
	font-weight: bold;
}

.cmd-highlight {
	color: #eab308;
	background: rgba(234, 179, 8, 0.1);
	padding: 0 4px;
}

.input-line {
	display: flex;
	align-items: center;
}

#terminalInput {
	background: transparent;
	border: none;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 1rem;
	flex: 1;
	outline: none;
	caret-color: var(--accent);
}

/* --- SYSTEM DASHBOARD STYLES --- */
.system-dashboard-section {
	margin: 40px 0;
}

.system-header {
	background: #1a1a1a;
	padding: 10px 15px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.system-header .prompt {
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: 0.95rem;
}

.system-info-body {
	padding: 20px 40px;
	font-family: var(--font-mono);
	font-size: 0.9rem;
}

.info-line {
	display: flex;
	margin-bottom: 8px;
}

.info-key {
	color: var(--text-muted);
	min-width: 120px;
	font-weight: 700;
}

.info-value {
	color: var(--text);
	font-weight: 400;
}

.status-line .info-value {
	color: var(--accent);
	font-weight: bold;
}

.status-line .fa-check-circle {
	margin-right: 5px;
}

.separator-line {
	color: var(--text-muted);
	font-size: 0.8rem;
	text-transform: uppercase;
	margin: 20px 0 10px 0;
	border-bottom: 1px dashed #262626;
	padding-bottom: 5px;
}

/* --- Process / Skill Lines --- */
.process-line {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	padding: 5px 0;
}

.pid {
	color: #eab308;
	width: 60px;
}

.process-name {
	color: var(--text);
	font-weight: 600;
	width: 150px;
}

.process-usage {
	flex-grow: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--accent);
}

.usage-bar {
	height: 6px;
	background: var(--accent-glow);
	border-radius: 3px;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.usage-bar::after {
	content: '';
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
	transition: width 0.8s ease-out;
}

.bar-90::after {
	width: 90%;
}

.bar-63::after {
	width: 63%;
}

.bar-85::after {
	width: 85%;
}

.bar-80::after {
	width: 80%;
}




.footer-note {
	margin-top: 20px;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.footer-note .prompt {
	color: #eab308;
}

/* --- Responsive --- */
@media (max-width: 600px) {
	.system-info-body {
		padding: 20px;
	}

	.info-line {
		flex-direction: column;
	}

	.info-key {
		min-width: 100%;
		margin-bottom: 2px;
	}

	.process-line {
		flex-wrap: wrap;
		gap: 5px;
	}

	.pid,
	.process-name {
		width: 50%;
	}

	.process-usage {
		width: 100%;
		margin-top: 5px;
		font-size: 0.8rem;
	}
}

/* --- PROJECTS GRID (Hidden initially) --- */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.projects-grid.hidden {
	display: none;
	opacity: 0;
}

.section-title {
	grid-column: 1 / -1;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.section-title h2 {
	font-family: var(--font-mono);
	color: var(--accent);
}

.section-title .line {
	flex: 1;
	height: 1px;
	background: #333;
}

.project-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: 0.3s;
}

.project-card:hover {
	border-color: var(--accent);
}

.p-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.p-header h3 {
	font-size: 1.1rem;
}

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

.project-card p {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 15px;
	line-height: 1.5;
}

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.tags span {
	font-size: 0.75rem;
	color: var(--accent);
	background: var(--accent-glow);
	padding: 3px 8px;
	border-radius: 4px;
	font-family: var(--font-mono);
}

.p-footer {
	display: flex;
	justify-content: end;
}

.p-footer a {
	text-decoration: none;
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}

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

/* --- POPUP --- */
.popup {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(34, 197, 94, 0.9);
	color: #000;
	padding: 10px 20px;
	border-radius: 30px;
	font-weight: bold;
	opacity: 0;
	pointer-events: none;
	transition: 0.3s;
}

.popup.show {
	opacity: 1;
	bottom: 40px;
}

/* --- ANIMATIONS --- */
@keyframes scroll {
	0% {
		transform: translateX(0);
	}

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

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	}

	70% {

		box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
	.bento-grid {
		grid-template-columns: 1fr;
	}

	.card-profile {
		grid-column: span 1;
	}

	.card-socials {
		justify-content: space-around;
	}

	.card-stack {
		grid-column: span 1;
	}

	.card-stat {
		justify-content: space-around;
		flex-direction: row;
	}

	.marquee-content {
		padding-left: 80px;
	}
}
