/* ============================================================
   iNTELENT — futuristic / scientific / ICT theme
   ============================================================ */

:root {
	--bg:        #05060a;
	--bg-2:      #090d16;
	--panel:     rgba(13, 19, 32, 0.55);
	--panel-2:   rgba(18, 26, 43, 0.65);
	--line:      rgba(0, 229, 255, 0.16);
	--line-soft: rgba(120, 160, 220, 0.10);
	--cyan:      #00e5ff;
	--blue:      #4ea8ff;
	--violet:    #8b5cf6;
	--red:       #ff2e63;
	--text:      #d6deec;
	--muted:     #7e8ca6;
	--white:     #f4f8ff;
	--grad:      linear-gradient(120deg, #00e5ff 0%, #4ea8ff 45%, #8b5cf6 100%);
	--mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
	--display:   'Orbitron', 'Rajdhani', sans-serif;
	--head:      'Rajdhani', 'Inter', sans-serif;
	--body:      'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
	--radius:    14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	background-image:
		radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
		radial-gradient(1000px 500px at -10% 110%, rgba(0, 229, 255, 0.10), transparent 60%);
}

/* ---------- background fx layers ---------- */
#bgfx {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.grid-overlay {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 90%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 90%);
}

.glow {
	position: fixed;
	z-index: 0;
	pointer-events: none;
	filter: blur(90px);
	opacity: 0.5;
	border-radius: 50%;
}
.glow-a { width: 460px; height: 460px; top: -120px; right: -80px;
	background: radial-gradient(circle, rgba(0,229,255,0.35), transparent 70%); }
.glow-b { width: 520px; height: 520px; bottom: -160px; left: -120px;
	background: radial-gradient(circle, rgba(139,92,246,0.30), transparent 70%); }

.scanline {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: repeating-linear-gradient(
		to bottom,
		rgba(255,255,255,0.015) 0px,
		rgba(255,255,255,0.015) 1px,
		transparent 2px,
		transparent 4px
	);
	mix-blend-mode: overlay;
}

/* ---------- shell / layout ---------- */
.shell {
	position: relative;
	z-index: 2;
	max-width: 1080px;
	margin: 0 auto;
	padding: 26px 24px 60px;
}

#error {
	min-height: 0;
	color: #fff;
	text-align: center;
}
#error:not(:empty) {
	background: var(--red);
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 16px;
}

/* ---------- top bar ---------- */
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(18,26,43,0.7), rgba(10,14,22,0.55));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 18px 50px -28px rgba(0,229,255,0.4);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.brand-logo {
	height: 42px;
	width: auto;
	display: block;
	filter: drop-shadow(0 0 9px rgba(0, 229, 255, 0.35));
}
.brand-text {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: 3px;
	font-size: 17px;
	color: var(--white);
}
.brand-text .bw {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.brand-text em {
	font-family: var(--mono);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 1px;
	font-size: 11px;
	color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 22px; }
#menunav {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0; padding: 0;
}
.navlink {
	display: inline-block;
	padding: 7px 16px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 8px;
	transition: .2s ease;
}
.navlink:hover { color: var(--white); border-color: var(--line); }
.navlink.active {
	color: var(--cyan);
	border-color: var(--line);
	background: rgba(0,229,255,0.06);
	box-shadow: inset 0 0 18px rgba(0,229,255,0.12);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}
.dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 10px var(--cyan);
	animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- hero ---------- */
.hero {
	position: relative;
	margin: 40px 0 36px;
	padding: 44px 36px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(16,23,38,0.7), rgba(8,11,18,0.6));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 200px at 18% 0%, rgba(0,229,255,0.12), transparent 70%);
	pointer-events: none;
}
.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--cyan);
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(0,229,255,0.05);
}
.hero-name {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(34px, 6vw, 62px);
	line-height: 1.02;
	letter-spacing: 1px;
	margin: 18px 0 10px;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 40px rgba(0,229,255,0.18);
}
.hero-role {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(16px, 2.4vw, 22px);
	letter-spacing: .5px;
	color: var(--white);
	margin: 0 0 4px;
}
.hero-loc {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 26px;
}

.terminal {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--cyan);
	border-radius: 10px;
	background: rgba(3,6,12,0.6);
	font-family: var(--mono);
	font-size: 13px;
}
.t-line { display: flex; gap: 12px; }
.t-key {
	color: var(--violet);
	min-width: 64px;
}
.t-key::after { content: " :"; color: var(--muted); }
.t-val { color: var(--text); }

/* ---------- tool rail (computer-tool icons) ---------- */
.toolrail {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}
.tool {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	width: 62px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: default;
	transition: color .2s ease;
}
.tool em { font-style: normal; }
.ticon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	color: var(--cyan);
	border-radius: 50%;
	background: radial-gradient(circle at 32% 26%, rgba(0, 229, 255, 0.14), rgba(10, 14, 22, 0.85) 70%);
	box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.08);
	transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
/* gradient ring */
.ticon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	padding: 1px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	        mask-composite: exclude;
	opacity: .45;
	transition: opacity .25s ease;
}
.ticon svg { width: 23px; height: 23px; position: relative; z-index: 1; }
.tool:hover { color: var(--white); }
.tool:hover .ticon::before { opacity: 1; }
.tool:hover .ticon {
	color: #03121a;
	background: var(--grad);
	transform: translateY(-4px) scale(1.06);
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
}

/* ---------- panels grid ---------- */
.panels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.panel {
	position: relative;
	padding: 26px 26px 24px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: var(--panel);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
	overflow: hidden;
}
.panel::after {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 2px;
	background: var(--grad);
	opacity: 0;
	transition: opacity .25s ease;
}
.panel:hover {
	border-color: var(--line);
	transform: translateY(-3px);
	box-shadow: 0 24px 60px -34px rgba(0,229,255,0.5);
}
.panel:hover::after { opacity: 1; }
.panel-wide { grid-column: 1 / -1; }

.panel h2 {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 21px;
	letter-spacing: .5px;
	color: var(--white);
	margin: 0 0 14px;
}
.h2ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--cyan);
	border: 1px solid var(--line);
	border-radius: 9px;
	background: rgba(0, 229, 255, 0.05);
	box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.07);
	transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
.h2ico svg { width: 18px; height: 18px; }
.panel:hover .h2ico {
	color: #03121a;
	background: var(--cyan);
	box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}
.idx {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	color: var(--cyan);
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: rgba(0,229,255,0.05);
}
.panel p { margin: 0; color: var(--muted); }
.panel p em {
	font-style: normal;
	color: var(--blue);
	font-family: var(--mono);
	font-size: 13px;
}

/* ---------- skills ---------- */
.skills {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	list-style: none;
	margin: 0; padding: 0;
}
.skills li {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--text);
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(0,229,255,0.04);
	transition: .2s ease;
}
.skills li:hover {
	color: var(--bg);
	background: var(--cyan);
	box-shadow: 0 0 16px rgba(0,229,255,0.5);
	transform: translateY(-2px);
}

/* ---------- contact ---------- */
.contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}
.c-mail {
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 500;
	color: var(--cyan);
	text-decoration: none;
	padding: 10px 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(0,229,255,0.05);
	transition: .2s ease;
}
.c-mail:hover {
	color: var(--bg);
	background: var(--cyan);
	box-shadow: 0 0 22px rgba(0,229,255,0.5);
}
.c-loc { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ico { margin-right: 6px; }

/* ---------- footer ---------- */
.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}
.footer sup { color: var(--cyan); }
.blink { animation: blink 1.1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
	.shell { padding: 18px 16px 48px; }
	.topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
	.nav { width: 100%; justify-content: space-between; }
	.brand-text em { display: none; }
	.panels { grid-template-columns: 1fr; }
	.hero { padding: 32px 22px; }
	.terminal { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dot, .blink { animation: none; }
	.panel { transition: none; }
}

/* respect link defaults inside content */
a { color: var(--cyan); }
