/* ============================================================
   pramod.xyz — backend engineer portfolio
   hand-written, self-contained, zero external requests
   ============================================================ */

:root {
	--bg:        #0b0f14;
	--bg-soft:   #0f151d;
	--panel:     #111a23;
	--panel-2:   #0d141c;
	--border:    #1d2a36;
	--border-hi: #293b4a;
	--text:      #dbe6f0;
	--dim:       #8aa0b2;
	--faint:     #5d7284;
	--accent:    #2fd6a3;
	--accent-2:  #6cc6ff;
	--accent-dk: #0b3b2e;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1100px;
	--radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
	font-family: var(--sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	font-size: 16.5px;
	-webkit-font-smoothing: antialiased;
	/* faint dot grid */
	background-image: radial-gradient(rgba(140, 170, 200, 0.055) 1px, transparent 1px);
	background-size: 26px 26px;
}

.mono { font-family: var(--mono); }
.dim  { color: var(--faint); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(47, 214, 163, 0.25); }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--accent); color: #04231a; padding: 8px 14px; border-radius: 0 0 8px 0;
	font-weight: 600;
}
.skip:focus { left: 0; }

/* ===== Nav ===== */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 15, 20, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
	font-family: var(--mono); font-weight: 700; font-size: 1.02rem; color: var(--text);
	letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand .cursor { color: var(--accent); animation: blink 1.15s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
	display: flex; gap: 6px; list-style: none; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
	font-family: var(--mono); font-size: 0.88rem; color: var(--dim);
	padding: 6px 10px; border-radius: 6px;
}
.nav-links a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before { content: "./"; color: var(--faint); }

/* ===== Hero ===== */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(600px 340px at 18% 8%, rgba(47, 214, 163, 0.09), transparent 65%),
		radial-gradient(520px 320px at 85% 30%, rgba(108, 198, 255, 0.07), transparent 65%);
}
.hero-grid {
	display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
	position: relative;
}
.eyebrow { color: var(--accent); font-size: 0.92rem; margin-bottom: 14px; letter-spacing: 0.3px; }
.hero h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	line-height: 1.12; letter-spacing: -0.5px; font-weight: 800; margin-bottom: 18px;
}
.lede { color: var(--dim); font-size: 1.08rem; max-width: 54ch; margin-bottom: 26px; }
.lede strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
	display: inline-block; padding: 11px 20px; border-radius: 8px;
	font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #04231a; }
.btn.primary:hover { background: #4be3b6; }
.btn.ghost { border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.social { display: flex; gap: 14px; list-style: none; align-items: center; }
.social a { color: var(--faint); display: inline-flex; padding: 6px; border-radius: 6px; }
.social a:hover { color: var(--accent); text-decoration: none; }

/* Terminal */
.terminal {
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	min-width: 0;
}
.term-bar {
	display: flex; align-items: center; gap: 7px;
	padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.term-title { margin-left: 8px; color: var(--faint); font-size: 0.8rem; }
.term-body {
	padding: 18px 18px 20px; font-size: 0.8rem; line-height: 1.75;
	white-space: pre-wrap; word-break: break-word; color: var(--dim);
	min-height: 320px;
}
.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: var(--text); }
.t-out { color: var(--dim); }
.t-caret { color: var(--accent); animation: blink 1.15s steps(1) infinite; }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
.stat-label { color: var(--faint); font-size: 0.86rem; }

/* ===== Sections ===== */
.section { padding: 84px 0 10px; }
.section-title {
	font-size: 1.65rem; font-weight: 750; letter-spacing: -0.3px; margin-bottom: 14px;
	display: flex; align-items: baseline; gap: 10px;
}
.section-no { color: var(--accent); font-size: 1.05rem; font-weight: 600; }
.section-title::after {
	content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 14px; align-self: center;
}
.section-sub { color: var(--faint); margin-bottom: 30px; font-size: 0.98rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; margin-top: 26px; }
.about-copy p { margin-bottom: 18px; color: var(--dim); }
.about-copy strong { color: var(--text); }
.about-photo { justify-self: center; text-align: center; }
.about-photo img {
	width: 240px; height: 240px; object-fit: cover; border-radius: 14px;
	border: 1px solid var(--border);
	filter: grayscale(35%) contrast(1.04);
	box-shadow: 0 0 0 6px rgba(47, 214, 163, 0.06), 0 16px 40px rgba(0, 0, 0, 0.4);
}
.about-photo figcaption { color: var(--faint); font-size: 0.8rem; margin-top: 12px; }

/* Systems cards */
.cards {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 20px; margin-top: 30px;
}
.card {
	background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 24px 22px 20px;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
	transform: translateY(-3px);
	border-color: rgba(47, 214, 163, 0.45);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.card h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.2px; }
.card p { color: var(--dim); font-size: 0.93rem; margin-bottom: 14px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li {
	font-size: 0.72rem; color: var(--accent);
	background: rgba(47, 214, 163, 0.08);
	border: 1px solid rgba(47, 214, 163, 0.22);
	padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.tags.big li { font-size: 0.8rem; padding: 5px 12px; }

/* Stack */
.stack-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px; margin-top: 30px;
}
.stack-group {
	background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 20px;
}
.stack-group h3 { color: var(--accent-2); font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; }
.stack-group .tags li { color: var(--text); background: var(--panel); border-color: var(--border); }

/* Timeline */
.timeline { list-style: none; margin-top: 34px; position: relative; padding-left: 0; }
.timeline::before {
	content: ""; position: absolute; left: 74px; top: 6px; bottom: 6px; width: 1px;
	background: var(--border);
}
.tl-item { display: grid; grid-template-columns: 60px 1fr; gap: 34px; padding: 0 0 42px; position: relative; }
.tl-item::after {
	content: ""; position: absolute; left: 70px; top: 8px;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--bg); border: 2px solid var(--accent);
}
.tl-meta { color: var(--faint); font-size: 0.8rem; text-align: right; padding-top: 2px; }
.tl-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.tl-org { color: var(--dim); font-weight: 500; font-size: 0.98rem; }
.tl-body p { color: var(--dim); font-size: 0.94rem; margin-bottom: 12px; max-width: 62ch; }

/* Contact */
.contact { padding-bottom: 40px; }
.contact-box {
	margin-top: 30px; text-align: center;
	background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 52px 28px;
}
.contact-cmd { color: var(--faint); font-size: 0.85rem; margin-bottom: 18px; }
.contact-mail {
	display: inline-block; font-family: var(--mono);
	font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 700; color: var(--accent);
	margin-bottom: 16px; word-break: break-all;
}
.contact-note { color: var(--dim); max-width: 46ch; margin: 0 auto 26px; }
.contact .social { justify-content: center; gap: 22px; }
.contact .social a { font-family: var(--mono); font-size: 0.9rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-soft); }
.footer-inner {
	padding: 22px 24px; display: flex; align-items: center; justify-content: center;
	gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--dim); text-align: center;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.hero { padding: 56px 0 44px; }
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; }
	.about-photo { order: -1; }
	.term-body { min-height: 0; }
}
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.nav-inner { flex-direction: column; align-items: center; gap: 8px; padding: 9px 14px; }
	.brand { font-size: 0.92rem; }
	.nav-links {
		width: 100%; justify-content: space-between; gap: 2px; flex-wrap: nowrap;
		overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.nav-links::-webkit-scrollbar { display: none; }
	.nav-links a { padding: 4px 6px; font-size: 0.8rem; white-space: nowrap; }
	.nav-links a.active::before { content: ""; } /* drop ./ prefix so widths stay stable */
	html { scroll-padding-top: 94px; }
	.section { padding: 60px 0 6px; }
	.timeline::before { left: 8px; }
	.tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
	.tl-item::after { left: 4px; }
	.tl-meta { text-align: left; }
	.footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.brand .cursor, .t-caret { animation: none; }
	.btn, .card { transition: none; }
}
