html {
	scroll-behavior: smooth;
}

section {
	scroll-margin-top: 100px;
}

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

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: #090d16;
	color: #e2e8f0;
	line-height: 1.6;
	overflow-x: hidden;
}

#bg-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

header {
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-container {
	width: 95%;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.6rem;
	letter-spacing: 2px;
	color: #ffffff;
}

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

nav a {
	color: #cbd5e1;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

nav a:hover {
	color: #38bdf8;
}

.container {
	width: 85%;
	max-width: 950px;
	margin: 0 auto;
}

.section {
	padding: 70px 0;
}

.section-title {
	margin-bottom: 30px;
	font-size: 1.8rem;
	color: #ffffff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 10px;
}

.profile-hero {
	padding: 90px 0 50px 0;
}

.hero-wrapper {
	display: flex;
	align-items: center;
	gap: 30px;
}

.hero-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #38bdf8;
	box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.hero-wrapper h2 {
	font-size: 2.8rem;
	color: #ffffff;
	line-height: 1.2;
}

.highlight {
	color: #38bdf8;
}

.tagline {
	color: #94a3b8;
	font-size: 1.2rem;
	margin-top: 6px;
}

.about-text {
	font-size: 1.1rem;
	color: #cbd5e1;
	line-height: 1.8;
}

.tech-tags {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.tech-tags span {
	background: rgba(56, 189, 248, 0.1);
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.2);
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.project-list {
	display: flex;
	flex-direction: column;
}

.project-item {
	display: flex;
	justify-content: space-between;
	align-item: center;
	padding: 18px 0;
	border-bottom: 1px solid rgba (255, 255, 255, 0.06);
	transition: transform 0.2s ease;
}

.project-item:hover {
	transform: translateX(6px);
}

.project-item h3 {
	color: #ffffff;
	font-size: 1.2rem;
	margin-bottom: 4px;
}

.project-item p {
	color: #94a3b8;
	font-size: 0.95rem;
}

.project-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.project-meta code {
	white-space: no-wrap;
	word-break: keep-all;
	background: rgba(15, 23, 42, 0.8);
	padding: 4px 10px;
	border-radius: 6px;
	color: #cbd5e1;
	font-size: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow-x: auto;
}

.badge {
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.badge-active {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-inactive {
	background: rgba(220, 38, 38, 0.15);
	color: #ef4444;
	border: 1px solid rgba(220, 38, 38, 0.3);
}

.chat-card {
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10)px;
	border: 1px solid rgba (255, 255, 255, 0.08);
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.chat-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: rgba(9, 13, 22, 0.5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.85rem;
	color: #94a3b8;
}

.chat-header input {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #38bdf8;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 600;
	outline: none;
}

.chat-messages {
	height: 300px;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scrollbar-width: thin;
	scrollbar-color: #38bdf8 rgba(15, 23, 42, 0.6);
}

.chat-messages::-webkit-scrollbar {
	width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.6);
	border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
	background: #38bdf8;
	border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
	background: #0284c7;
}

.chat-msg {
	display: flex;
	flex-direction: column;
	padding: 8px 14px;
	border-radius: 10px;
	max-width: 75%;
}

.chat-msg.other {
	align-self: flex-start;
	background: rgba(30, 41, 59, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-msg.user {
	align-self: flex-end;
	background: rgba(56, 189, 248, 0.15);
	border: 1px solid rgba(56, 189, 248, 0.3);
}

.chat-meta {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 2px;
}

.chat-msg .sender {
	font-size: 0.75rem;
	font-weight: 700;
	color: #38bdf8;
}

.chat-msg.user .sender {
	color: #a5f3fc;
}

.chat-msg .timestamp {
	font-size: 0.65rem;
	color: #64748b;
}

.chat-msg .text {
	font-size: 0.95rem;
	color: #f8fafc;
	word-break: break-word;
}

.chat-input-row {
	display: flex;
	padding: 12px;
	gap 10px;
	background: rgba(9, 13, 22, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
}

.chat-input-row input {
	flex: 1;
	min-width: 0;
	background: rgba(30, 41, 59, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 10px 16px;
	border-radius: 8px;
	color: #ffffff;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s ease;
}

.chat-input-row input:focus {
	border-color: #38bdf8;
}

.chat-input-row button {
	flex-shrink: 0;
	background: #38bdf8;
	color: #000000;
	border: none;
	padding: 10px 22px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.chat-input-row button:hover {
	background: #0284c7;
	color: #ffffff;
}

footer {
	text-align: center;
	padding: 40px 0;
	color: #64748b;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	margin-top: 60px;
	font-size: 0.9rem;
}

@media (max-width: 700px) {
	html, body {
		width: 100%;
		overflow-x: hidden;
		position: relative;
	}

	.profile-hero {
		padding: 30px 0 15px 0;
	}

	.hero-wrapper {
		gap: 15px;
	}

	.nero-avatar {
		width: 65px;
		height: 65px;
		border-width: 2px;
	}

	.hero-wrapper h2 {
		font-size: 1.8rem;
	}

	.tagline {
		font-size: 0.95rem;
	}

	.chat-input-row input,
	.chat-header input {
		font-size: 16px !important;
	}
}
