@charset "utf-8";
/* ==========================================================
   Murad Rzayev — Personal Portfolio
   Based on TemplateMo 603 Nexaverse (https://templatemo.com/tm-603-nexaverse)
   Customized with AI: new cyber palette, fonts, multi-page layout,
   matrix background, terminal hero, project modal, skill bars.
   ========================================================== */

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

:root {
	--primary: #00ff9d;
	--secondary: #00b3ff;
	--accent: #7c5cff;
	--danger: #ff4d6d;
	--dark-1: #05070d;
	--dark-2: #0b0f1a;
	--dark-3: #111827;
	--text: #e6edf3;
	--muted: rgba(230, 237, 243, 0.62);
	--faint: rgba(230, 237, 243, 0.38);
	--glass-bg: rgba(255, 255, 255, 0.035);
	--glass-bg-hover: rgba(255, 255, 255, 0.06);
	--glass-border: rgba(255, 255, 255, 0.09);
	--glow-primary: rgba(0, 255, 157, 0.35);
	--glow-secondary: rgba(0, 179, 255, 0.35);
	--glow-accent: rgba(124, 92, 255, 0.3);
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--radius-lg: 22px;
	--radius-md: 16px;
	--nav-height: 74px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-display);
	background: var(--dark-1);
	color: var(--text);
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	line-height: 1.6;
}

a {
	color: inherit;
}

img,
svg {
	max-width: 100%;
}

::selection {
	background: var(--primary);
	color: var(--dark-1);
}

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
	border-radius: 6px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 20000;
	padding: 10px 18px;
	background: var(--primary);
	color: var(--dark-1);
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 16px;
}

/* ===== Background layers ===== */
.matrix-bg {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: 0.09;
	pointer-events: none;
}

.ambient-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	animation: float 22s ease-in-out infinite;
}

.orb-1 {
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
	top: -260px;
	left: -220px;
}

.orb-2 {
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
	bottom: -200px;
	right: -180px;
	animation-delay: -7s;
}

.orb-3 {
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
	top: 45%;
	left: 55%;
	animation-delay: -14s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(50px, -30px) scale(1.05); }
	50% { transform: translate(-30px, 50px) scale(0.95); }
	75% { transform: translate(-50px, -20px) scale(1.02); }
}

.grid-overlay {
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 255, 157, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 157, 0.04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
	pointer-events: none;
	z-index: 1;
}

/* Scanline sweep */
.grid-overlay::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 140px;
	background: linear-gradient(180deg, transparent, rgba(0, 255, 157, 0.05), transparent);
	animation: scan 9s linear infinite;
}

@keyframes scan {
	from { top: -140px; }
	to { top: 100%; }
}

/* ===== Loading screen ===== */
.loading-screen {
	position: fixed;
	inset: 0;
	background: var(--dark-1);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 22px;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	/* Fallback: hide even if JavaScript is disabled */
	animation: loaderOut 0.6s ease 3s forwards;
}

.loading-screen.hidden {
	opacity: 0;
	visibility: hidden;
}

@keyframes loaderOut {
	to { opacity: 0; visibility: hidden; }
}

.loader-terminal {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--primary);
	letter-spacing: 1px;
}

.loader-terminal .prompt {
	color: var(--secondary);
	margin-right: 8px;
}

.cursor {
	display: inline-block;
	width: 9px;
	height: 1.1em;
	margin-left: 4px;
	vertical-align: text-bottom;
	background: var(--primary);
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {
	50% { opacity: 0; }
}

.loader-bar {
	width: 220px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.loader-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	box-shadow: 0 0 12px var(--glow-primary);
	animation: loadBar 0.9s ease-out forwards;
}

@keyframes loadBar {
	to { width: 100%; }
}

/* ===== Navigation ===== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 14px 20px;
	transition: padding 0.3s ease;
}

.navbar {
	max-width: 1200px;
	margin: 0 auto;
	height: 58px;
	padding: 0 14px 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(8, 11, 20, 0.6);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--glass-border);
	border-radius: 50px;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled .navbar {
	border-color: rgba(0, 255, 157, 0.2);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 16px;
	color: var(--text);
}

.nav-brand svg {
	width: 32px;
	height: 32px;
	filter: drop-shadow(0 0 8px var(--glow-primary));
}

.nav-brand .accent {
	color: var(--primary);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.nav-links a {
	display: block;
	padding: 9px 16px;
	border-radius: 40px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	position: relative;
	transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
	color: var(--text);
	background: var(--glass-bg-hover);
}

.nav-links a.active {
	color: var(--primary);
	background: rgba(0, 255, 157, 0.08);
}

.nav-links a.nav-cta {
	border: 1px solid rgba(0, 255, 157, 0.45);
	color: var(--primary);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
	background: var(--primary);
	color: var(--dark-1);
	box-shadow: 0 0 20px var(--glow-primary);
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	background: var(--glass-bg);
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== Layout ===== */
.container {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.page {
	flex: 1;
	padding-top: calc(var(--nav-height) + 50px);
	padding-bottom: 60px;
}

.section {
	margin-bottom: 90px;
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-kicker {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--primary);
	margin-bottom: 12px;
	letter-spacing: 1px;
}

.section-kicker::before {
	content: '> ';
	color: var(--secondary);
}

.section-title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 14px;
	background: linear-gradient(135deg, var(--primary) 0%, #ffffff 50%, var(--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-subtitle {
	font-size: 16px;
	color: var(--muted);
	max-width: 620px;
	margin: 0 auto;
}

/* Glitch effect for page titles */
.glitch {
	position: relative;
	display: inline-block;
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	-webkit-text-fill-color: transparent;
	background: inherit;
	-webkit-background-clip: text;
	background-clip: text;
	opacity: 0;
}

.glitch:hover::before {
	opacity: 0.8;
	transform: translate(-3px, 1px);
	-webkit-text-fill-color: var(--secondary);
	clip-path: inset(10% 0 55% 0);
	animation: glitchShift 0.4s steps(2) infinite;
}

.glitch:hover::after {
	opacity: 0.8;
	transform: translate(3px, -1px);
	-webkit-text-fill-color: var(--danger);
	clip-path: inset(60% 0 8% 0);
	animation: glitchShift 0.35s steps(2) infinite reverse;
}

@keyframes glitchShift {
	0% { clip-path: inset(12% 0 60% 0); }
	50% { clip-path: inset(55% 0 12% 0); }
	100% { clip-path: inset(30% 0 40% 0); }
}

/* Scroll reveal */
.js .reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in-view {
	opacity: 1;
	transform: none;
}

.js .reveal.delay-1 { transition-delay: 0.1s; }
.js .reveal.delay-2 { transition-delay: 0.2s; }
.js .reveal.delay-3 { transition-delay: 0.3s; }

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: 50px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.btn-primary {
	background: var(--primary);
	color: var(--dark-1);
	box-shadow: 0 0 0 rgba(0, 255, 157, 0);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px var(--glow-primary);
}

.btn-ghost {
	background: var(--glass-bg);
	border-color: var(--glass-border);
	color: var(--text);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

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

/* ===== Glass card base ===== */
.glass-card {
	background: var(--glass-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
	transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.glass-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.35), transparent);
}

/* ===== Home: hero ===== */
.hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 60px;
	align-items: center;
	min-height: calc(100vh - var(--nav-height) - 110px);
	margin-bottom: 70px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	background: rgba(0, 255, 157, 0.08);
	border: 1px solid rgba(0, 255, 157, 0.3);
	border-radius: 50px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--primary);
	margin-bottom: 26px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 0 0 var(--glow-primary);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.6); }
	70% { box-shadow: 0 0 0 10px rgba(0, 255, 157, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.hero-headline {
	font-size: 58px;
	font-weight: 700;
	line-height: 1.08;
	margin-bottom: 24px;
	letter-spacing: -1px;
}

.hero-headline .gradient {
	background: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtext {
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 36px;
	max-width: 540px;
}

.hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.hero-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 22px;
	min-height: 420px;
}

.hero-orb {
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(0, 255, 157, 0.35), rgba(0, 179, 255, 0.2) 50%, transparent 70%);
	filter: blur(40px);
	animation: orbPulse 5s ease-in-out infinite;
}

@keyframes orbPulse {
	0%, 100% { transform: scale(1); opacity: 0.7; }
	50% { transform: scale(1.12); opacity: 1; }
}

/* Terminal window */
.terminal {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 470px;
	background: rgba(7, 10, 18, 0.85);
	border: 1px solid rgba(0, 255, 157, 0.25);
	border-radius: 16px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 255, 157, 0.08);
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: 14px;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid var(--glass-border);
}

.terminal-bar i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff5f57;
}

.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }

.terminal-title {
	margin-left: 10px;
	font-size: 12px;
	color: var(--faint);
}

.terminal-body {
	padding: 20px 22px 24px;
	min-height: 360px;
	line-height: 1.75;
}

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

.terminal-line .ps1 {
	color: var(--primary);
}

.terminal-line .ps1 b {
	color: var(--secondary);
	font-weight: 500;
}

.terminal-line.output {
	color: var(--muted);
}

.terminal-line.output .hl {
	color: var(--primary);
}

.terminal-line.output .warn {
	color: #febc2e;
}

/* Badges under the terminal (a row, so they never cover the terminal text) */
.hero-chips {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 470px;
}

.floating-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: rgba(12, 16, 28, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: 14px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
	animation: floatCard 6s ease-in-out infinite;
}

.floating-card .ico {
	font-size: 18px;
}

.fc-2 { animation-delay: -2s; }
.fc-3 { animation-delay: -4s; }

.floating-card:hover {
	border-color: rgba(0, 255, 157, 0.4);
	color: var(--primary);
}

@keyframes floatCard {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

/* Metrics strip */
.metrics {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 30px;
	padding: 38px 40px;
	margin-bottom: 90px;
}

.metric {
	text-align: center;
}

.metric-value,
.metric-suffix {
	font-size: 44px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.metric-suffix {
	font-size: 30px;
}

.metric-label {
	display: block;
	font-size: 13px;
	color: var(--muted);
	margin-top: 4px;
	letter-spacing: 1px;
}

.metric-divider {
	width: 1px;
	height: 50px;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* Explore grid (the original Nexaverse menu, now real links) */
.explore-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.explore-item {
	padding: 32px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--text);
}

.explore-item:hover {
	transform: translateY(-10px);
	border-color: var(--primary);
	background: rgba(0, 255, 157, 0.05);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 157, 0.12);
}

.menu-badge {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 18px;
	position: relative;
	background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 179, 255, 0.15));
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--primary);
	text-shadow: 0 0 18px var(--glow-primary);
	transition: transform 0.4s ease;
}

.menu-badge::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-top-color: var(--primary);
	border-right-color: rgba(0, 179, 255, 0.6);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.explore-item:hover .menu-badge {
	transform: scale(1.1);
}

.explore-item:hover .menu-badge::after {
	opacity: 1;
	animation: badgeSpin 1.8s linear infinite;
}

@keyframes badgeSpin {
	to { transform: rotate(360deg); }
}

.explore-item h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 6px;
}

.explore-item p {
	font-size: 13px;
	color: var(--muted);
}

/* Value cards */
.values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.value-card {
	padding: 34px 30px;
}

.value-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 255, 157, 0.25);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.value-number {
	font-family: var(--font-mono);
	font-size: 46px;
	font-weight: 700;
	color: rgba(0, 255, 157, 0.16);
	line-height: 1;
	margin-bottom: 16px;
}

.value-card h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 10px;
}

.value-card p {
	font-size: 15px;
	color: var(--muted);
}

/* Tech marquee */
.tech {
	text-align: center;
}

.tech-label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 3px;
	color: var(--faint);
	text-transform: uppercase;
	margin-bottom: 18px;
}

.tech-marquee {
	overflow: hidden;
	position: relative;
	padding: 18px 0;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-track {
	display: flex;
	gap: 18px;
	width: max-content;
	animation: marquee 28s linear infinite;
}

.tech-marquee:hover .tech-track {
	animation-play-state: paused;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.tech-item {
	font-family: var(--font-mono);
	font-size: 15px;
	color: var(--muted);
	white-space: nowrap;
	padding: 10px 20px;
	border: 1px solid var(--glass-border);
	border-radius: 40px;
	background: var(--glass-bg);
	transition: color 0.3s ease, border-color 0.3s ease;
}

.tech-item:hover {
	color: var(--primary);
	border-color: var(--primary);
}

/* ===== About page ===== */
.about-content {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 50px;
	align-items: center;
}

.about-text h2 {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--primary);
}

.about-text p {
	color: var(--muted);
	font-size: 16px;
	margin-bottom: 16px;
}

.about-text strong {
	color: var(--text);
	font-weight: 600;
}

.about-image {
	position: relative;
	border-radius: var(--radius-lg);
	padding: 18px;
}

.about-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.about-image::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-lg);
	padding: 1px;
	background: linear-gradient(135deg, var(--primary), transparent 40%, transparent 60%, var(--secondary));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.fact {
	padding: 24px 22px;
}

.fact:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 179, 255, 0.35);
}

.fact .fact-icon {
	font-size: 24px;
	margin-bottom: 12px;
}

.fact h3 {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--faint);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 6px;
}

.fact p {
	font-size: 15px;
	font-weight: 500;
}

/* Timeline */
.timeline {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	padding-left: 34px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
	border-radius: 2px;
}

.timeline-item {
	position: relative;
	padding: 24px 28px;
	margin-bottom: 22px;
}

.timeline-item::after {
	content: '';
	position: absolute;
	left: -32px;
	top: 30px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--dark-1);
	border: 2px solid var(--primary);
	box-shadow: 0 0 12px var(--glow-primary);
}

.timeline-item:hover {
	border-color: rgba(0, 255, 157, 0.3);
	transform: translateX(6px);
}

.timeline-step {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--secondary);
	letter-spacing: 1px;
}

.timeline-item h3 {
	font-size: 19px;
	font-weight: 600;
	margin: 4px 0 6px;
}

.timeline-item p {
	color: var(--muted);
	font-size: 15px;
}

/* ===== Projects page ===== */
.filter-buttons,
.tab-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.filter-btn,
.tab-btn {
	padding: 10px 22px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 40px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-btn:hover,
.tab-btn:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active,
.tab-btn.active {
	background: linear-gradient(135deg, rgba(0, 255, 157, 0.18), rgba(0, 179, 255, 0.18));
	border-color: var(--primary);
	color: var(--primary);
	box-shadow: 0 0 18px rgba(0, 255, 157, 0.2);
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.project-card {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	text-align: left;
	color: var(--text);
	font: inherit;
	padding: 0;
}

.project-card:hover {
	transform: translateY(-8px);
	border-color: var(--primary);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 255, 157, 0.1);
}

.project-card.is-hidden {
	display: none;
}

.project-card.fade-in {
	animation: fadeIn 0.45s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.project-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-bottom: 1px solid var(--glass-border);
}

.project-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.project-card:hover .project-thumb img {
	transform: scale(1.08);
}

.project-info {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.project-category {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--secondary);
	margin-bottom: 6px;
}

.project-info h3 {
	font-size: 19px;
	font-weight: 600;
	margin-bottom: 8px;
}

.project-info p {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 16px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.tag {
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 5px 11px;
	border-radius: 30px;
	color: var(--primary);
	background: rgba(0, 255, 157, 0.07);
	border: 1px solid rgba(0, 255, 157, 0.2);
}

.project-more {
	align-self: flex-start;
	margin-top: 18px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--primary);
	transition: letter-spacing 0.3s ease;
}

.project-card:hover .project-more {
	letter-spacing: 1px;
}

.project-details {
	display: none;
}

/* Project modal */
.modal {
	border: none;
	padding: 0;
	background: transparent;
	color: var(--text);
	max-width: min(680px, calc(100% - 32px));
	width: 100%;
	margin: auto;
}

.modal::backdrop {
	background: rgba(3, 5, 10, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.modal[open] .modal-inner {
	animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
	from { opacity: 0; transform: translateY(30px) scale(0.97); }
	to { opacity: 1; transform: none; }
}

.modal-inner {
	background: rgba(10, 14, 24, 0.97);
	border: 1px solid rgba(0, 255, 157, 0.25);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.modal-inner img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.modal-body {
	padding: 26px 28px 30px;
}

.modal-body h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: var(--primary);
}

.modal-body p {
	color: var(--muted);
	margin-bottom: 14px;
}

.modal-body ul {
	list-style: none;
	margin-bottom: 18px;
}

.modal-body li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
	color: var(--muted);
}

.modal-body a {
	color: var(--primary);
}

.modal-body li::before {
	content: '▹';
	position: absolute;
	left: 0;
	color: var(--primary);
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--glass-border);
	background: rgba(5, 7, 13, 0.7);
	color: var(--text);
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modal-close:hover {
	border-color: var(--primary);
	color: var(--primary);
	transform: rotate(90deg);
}

/* ===== Skills page ===== */
.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
	animation: fadeIn 0.4s ease-out;
}

.skills-layout {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 26px;
}

.skill-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	align-content: start;
}

.skill-item {
	padding: 20px 22px;
	border-radius: var(--radius-md);
}

.skill-item::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--primary), var(--secondary));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.skill-item:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 255, 157, 0.3);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.skill-item:hover::after {
	opacity: 1;
}

.tab-pane.active .skill-item {
	animation: fadeIn 0.45s ease-out both;
}

.tab-pane.active .skill-item:nth-child(2) { animation-delay: 0.05s; }
.tab-pane.active .skill-item:nth-child(3) { animation-delay: 0.1s; }
.tab-pane.active .skill-item:nth-child(4) { animation-delay: 0.15s; }
.tab-pane.active .skill-item:nth-child(5) { animation-delay: 0.2s; }
.tab-pane.active .skill-item:nth-child(6) { animation-delay: 0.25s; }

.skill-item-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 8px;
}

.skill-item h3 {
	font-size: 16px;
	font-weight: 600;
}

.skill-item p {
	font-size: 14px;
	color: var(--muted);
}

.skill-status {
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--secondary);
	white-space: nowrap;
}

.skill-status.certified {
	color: var(--primary);
	text-shadow: 0 0 10px var(--glow-primary);
}

.skill-status.work {
	color: #c4b5fd;
}

.skill-side {
	padding: 30px;
	align-self: start;
}

.skill-side h3 {
	font-size: 18px;
	margin-bottom: 16px;
	color: var(--primary);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	font-family: var(--font-mono);
	font-size: 12px;
	padding: 7px 13px;
	border-radius: 30px;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--muted);
	transition: all 0.3s ease;
}

.chip:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.learning-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.learning-card {
	padding: 26px;
}

.learning-card:hover {
	transform: translateY(-6px);
	border-color: rgba(124, 92, 255, 0.45);
}

.learning-card .ico {
	font-size: 26px;
	margin-bottom: 10px;
}

.learning-card h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

.learning-card p {
	font-size: 14px;
	color: var(--muted);
}

/* ===== Contact page ===== */
.contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 36px;
	align-items: start;
}

.contact-form {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.form-group label {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 15px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--faint);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 18px rgba(0, 255, 157, 0.2);
}

.form-group.invalid input,
.form-group.invalid textarea {
	border-color: var(--danger);
}

.field-error {
	display: block;
	min-height: 18px;
	font-size: 12px;
	color: var(--danger);
	margin-top: 6px;
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.form-status {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--primary);
	min-height: 20px;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact-item {
	padding: 22px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	color: var(--text);
}

a.contact-item:hover {
	border-color: var(--primary);
	transform: translateX(6px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(0, 255, 157, 0.18), rgba(0, 179, 255, 0.18));
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--primary);
}

.contact-icon svg {
	width: 22px;
	height: 22px;
}

.contact-details h3 {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--faint);
	margin-bottom: 2px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.contact-details p {
	font-size: 15px;
	font-weight: 500;
}

/* FAQ */
.faq {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faq details {
	padding: 0;
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 24px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	font-family: var(--font-mono);
	font-size: 20px;
	color: var(--primary);
	transition: transform 0.3s ease;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details[open] {
	border-color: rgba(0, 255, 157, 0.3);
}

.faq details p {
	padding: 0 24px 20px;
	color: var(--muted);
}

/* ===== 404 ===== */
.not-found {
	text-align: center;
	padding: 60px 0;
}

.not-found .code {
	font-family: var(--font-mono);
	font-size: 120px;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 10px;
}

.not-found p {
	color: var(--muted);
	margin-bottom: 30px;
}

/* ===== Footer ===== */
.site-footer {
	position: relative;
	z-index: 10;
	border-top: 1px solid var(--glass-border);
	background: rgba(5, 7, 13, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-inner p {
	font-size: 13px;
	color: var(--faint);
}

.footer-inner p a {
	color: var(--primary);
	text-decoration: none;
}

.footer-inner p a:hover {
	text-decoration: underline;
}

.social-links {
	display: flex;
	gap: 12px;
	list-style: none;
}

.social-links a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	color: var(--muted);
	transition: all 0.3s ease;
}

.social-links a:hover {
	color: var(--dark-1);
	background: var(--primary);
	border-color: var(--primary);
	transform: translateY(-4px);
	box-shadow: 0 8px 20px var(--glow-primary);
}

.social-links svg {
	width: 18px;
	height: 18px;
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 900;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(0, 255, 157, 0.4);
	background: rgba(8, 11, 20, 0.8);
	color: var(--primary);
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top:hover {
	background: var(--primary);
	color: var(--dark-1);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.explore-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: calc(100% + 8px);
		left: 20px;
		right: 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 12px;
		background: rgba(8, 11, 20, 0.96);
		border: 1px solid var(--glass-border);
		border-radius: 22px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all 0.3s ease;
	}

	.nav-links.open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-links a {
		padding: 13px 18px;
		font-size: 15px;
	}

	.hero {
		grid-template-columns: 1fr;
		gap: 50px;
		min-height: 0;
		text-align: center;
	}

	.hero-subtext {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-cta {
		justify-content: center;
	}

	.metrics {
		flex-wrap: wrap;
	}

	.metric-divider {
		display: none;
	}

	.values,
	.learning-list {
		grid-template-columns: 1fr;
	}

	.about-content,
	.contact-grid,
	.skills-layout {
		grid-template-columns: 1fr;
	}

	.about-image {
		max-width: 420px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.page {
		padding-top: calc(var(--nav-height) + 30px);
	}

	.section {
		margin-bottom: 70px;
	}

	.section-title {
		font-size: 32px;
	}

	.hero-headline {
		font-size: 38px;
	}

	.hero-subtext {
		font-size: 16px;
	}

	.hero-visual {
		min-height: 0;
	}

	.floating-card {
		padding: 9px 14px;
		font-size: 12px;
	}

	.terminal {
		font-size: 12px;
	}

	.terminal-body {
		min-height: 320px;
		padding: 16px;
	}

	.metrics {
		flex-direction: column;
		gap: 24px;
		padding: 30px 20px;
	}

	.explore-grid,
	.projects-grid,
	.facts,
	.form-row {
		grid-template-columns: 1fr;
	}

	.skill-items {
		grid-template-columns: 1fr;
	}

	.contact-form,
	.skill-side {
		padding: 24px 20px;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}

	.not-found .code {
		font-size: 84px;
	}
}

@media (max-width: 400px) {
	.hero-cta .btn {
		width: 100%;
	}

	.nav-brand span {
		font-size: 14px;
	}
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.matrix-bg {
		display: none;
	}
}
