/* ============================================================
   DESIGN TOKENS - CSS Custom Properties
   All colors, shadows, and brand values live here.
   Modify this block to retheme the entire site.
   ============================================================ */
:root {
	/* Background surfaces - dark navy/near-black */
	--bg: #04040c; /* page base */
	--surface: #080812; /* slightly lighter cards/sections */

	/* Brand accent - cyan / teal */
	--cyan: #00e5cc;
	--cyan-glow: 0 0 20px rgba(0, 229, 204, 0.5), 0 0 60px rgba(0, 229, 204, 0.2);

	/* Supporting accent colors */
	--magenta: #ff2d78;
	--violet: #7b2fff;
	--amber: #ffab00;

	/* Text hierarchy */
	--text: #b8cad8; /* body copy */
	--muted: #5a7a96; /* secondary / labels */

	/* Borders - subtle cyan tint */
	--border: rgba(0, 229, 204, 0.15);
}

/* ============================================================
   RESET & BASE
   Minimal reset followed by global base styles.
   ============================================================ */

/* Box model reset - applies to every element */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Smooth anchor scrolling site-wide */
html {
	scroll-behavior: smooth;
}

/* Body - dark background, light body text, Exo 2 as the default font */
body {
	background: var(--bg);
	color: var(--text);
	font-family: "Exo 2", sans-serif;
	font-weight: 300; /* Exo 2 looks best at light weight */
	overflow-x: hidden; /* no horizontal scroll on mobile */
	font-size: 106.25%; /* 17px base - slightly larger for readability */
}

/* ============================================================
   AMBIENT EFFECTS
   Purely decorative full-viewport layers that live behind
   all content. Both use pointer-events: none so they never
   block clicks or interactions.
   ============================================================ */

/* Scanlines - fixed repeating horizontal stripe overlay */
/* Creates a subtle CRT/monitor aesthetic without being distracting */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 8888; /* very high - sits above everything except modals */
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 3px,
		rgba(0, 0, 0, 0.05) 3px,
		rgba(0, 0, 0, 0.05) 4px /* thin dark stripe every 4px */
	);
}

/* Grid background - fixed cyan-tinted perspective grid */
/* Radial mask fades it out toward the edges for a centered glow effect */
#gridbg {
	position: fixed;
	inset: 0;
	z-index: 0; /* behind all sections */
	pointer-events: none;
	background-image:
		linear-gradient(rgba(0, 229, 204, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 229, 204, 0.04) 1px, transparent 1px);
	background-size: 50px 50px; /* grid cell size */
	/* Fade starts immediately, gone by 60% - aggressive edge falloff */
	mask-image: radial-gradient(
		ellipse 70% 70% at 50% 50%,
		black 0%,
		transparent 60%
	);
}

/* ============================================================
   NAVIGATION
   Fixed top bar with logo on the left, links on the right.
   Glassmorphism effect via backdrop-filter + fading gradient.
   ============================================================ */

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9000; /* highest z-index - always above page content */
	padding: 1.2rem 2.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* Fade from opaque at top to transparent at bottom */
	background: linear-gradient(
		180deg,
		rgba(4, 4, 12, 0.97) 0%,
		rgba(4, 4, 12, 0) 100%
	);
	backdrop-filter: blur(16px); /* frosted glass effect */
	border-bottom: 1px solid rgba(0, 229, 204, 0.05);
}

/* Logo - Orbitron wordmark with cyan glow */
.nav-logo {
	font-family: "Orbitron", monospace;
	font-weight: 900;
	font-size: 1rem;
	color: var(--cyan);
	text-decoration: none;
	letter-spacing: 0.25em;
	text-shadow: var(--cyan-glow);
}

/* The dot separator in "byh.uy" is magenta for contrast */
.nav-logo .dot {
	color: var(--magenta);
}

/* Nav link list - horizontal flex row */
.nav-links {
	display: flex;
	gap: 2.5rem;
	list-style: none;
}

/* Individual nav links - monospace, muted by default */
.nav-links a {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.7rem;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: color 0.25s;
	position: relative;
	padding-bottom: 4px; /* space for the underline pseudo-element */
}

/* Animated underline - grows from 0 to full width on hover */
.nav-links a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--cyan);
	box-shadow: var(--cyan-glow);
	transition: width 0.3s ease;
}

/* Hover: turn cyan and reveal the underline */
.nav-links a:hover {
	color: var(--cyan);
}
.nav-links a:hover::after {
	width: 100%;
}

/* ============================================================
   REUSABLE LAYOUT COMPONENTS
   These classes are shared across all sections.
   ============================================================ */

/* Section wrapper - consistent vertical padding on all sections */
section {
	position: relative;
	z-index: 1; /* above gridbg (z:0) and below nav (z:9000) */
	padding: 7rem 0;
	overflow: hidden; /* contains absolutely positioned decorative spots */
}

/* Centered content column - max-width + horizontal padding */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 2.5rem;
}

/* Section eyebrow label - e.g. "01 / WHO AM I" */
/* Has a decorative line prefix via ::before */
.section-label {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.65rem;
	color: var(--cyan);
	letter-spacing: 0.35em;
	text-transform: uppercase;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* The short horizontal line before the label text */
.section-label::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--cyan);
	box-shadow: var(--cyan-glow);
}

/* Section heading - large Orbitron title */
/* Uses clamp() for fluid responsive sizing */
h2.section-title {
	font-family: "Orbitron", monospace;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.06em;
	margin-bottom: 3.5rem;
	line-height: 1.15;
}

/* Cyan accent word inside section titles - wrap a word in <span> */
h2.section-title span {
	color: var(--cyan);
}

/* ============================================================
   REUSABLE BUTTON COMPONENTS
   .btn        - base shape/font/spacing (always required)
   .btn-primary - filled cyan gradient
   .btn-outline - ghost/bordered variant
   Usage: <a class="btn btn-primary"> or <a class="btn btn-outline">
   ============================================================ */

/* Base button - monospace, uppercase, parallelogram clip */
.btn {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 0.9rem 2.2rem;
	text-decoration: none;
	transition: all 0.25s;
	display: inline-block;
}

/* Primary - solid cyan-to-teal gradient fill */
/* clip-path creates the angled/slanted corners (cyberpunk look) */
.btn-primary {
	background: linear-gradient(90deg, var(--cyan), #00b8a9);
	color: var(--bg); /* dark text on bright bg */
	clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
}
.btn-primary:hover {
	filter: brightness(1.2); /* brighten the gradient on hover */
	box-shadow: 0 0 35px rgba(0, 229, 204, 0.4);
}

/* Outline - transparent with cyan border, same clip shape */
.btn-outline {
	border: 1px solid rgba(0, 229, 204, 0.3);
	color: var(--cyan);
	clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
	background: rgba(0, 229, 204, 0.02);
}
.btn-outline:hover {
	background: rgba(0, 229, 204, 0.07);
	border-color: var(--cyan);
	box-shadow: 0 0 25px rgba(0, 229, 204, 0.18);
}

/* ============================================================
   HERO SECTION
   Full-viewport intro with animated name, tagline, CTA.
   Contains floating orbs, a HUD ring, and corner brackets.
   ============================================================ */

#hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0; /* overrides section default padding */
	position: relative;
	overflow: hidden;
}

/* ── Floating ambient orbs ──────────────────────────────────
   Large blurred circles that drift slowly in the background.
   Three colors: cyan (top-right), magenta (bottom-left), violet (center).
   All share .hero-orb as the base class. */
.hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
	pointer-events: none;
}

/* Cyan orb - large, top-right, slow drift */
.orb-cyan {
	width: 700px;
	height: 700px;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.11) 0%,
		transparent 65%
	);
	top: -180px;
	right: -150px;
	animation: floatA 9s ease-in-out infinite;
}

/* Magenta orb - medium, bottom-left, medium speed drift */
.orb-mag {
	width: 500px;
	height: 500px;
	background: radial-gradient(
		circle,
		rgba(255, 45, 120, 0.07) 0%,
		transparent 65%
	);
	bottom: -100px;
	left: -100px;
	animation: floatB 12s ease-in-out infinite;
}

/* Violet orb - small, center, slow drift with 3 keyframes */
.orb-vio {
	width: 400px;
	height: 400px;
	background: radial-gradient(
		circle,
		rgba(123, 47, 255, 0.06) 0%,
		transparent 65%
	);
	top: 35%;
	left: 35%;
	animation: floatC 15s ease-in-out infinite;
}

/* Orb float animations - gentle translate drift, no rotation */
@keyframes floatA {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-40px, 40px);
	}
}
@keyframes floatB {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(30px, -30px);
	}
}
@keyframes floatC {
	0%,
	100% {
		transform: translate(0, 0);
	}
	33% {
		transform: translate(20px, -20px);
	}
	66% {
		transform: translate(-20px, 10px);
	}
}

/* ── HUD Ring - decorative spinning compass/radar element ──── */
/* Positioned right side, vertically centered */
.hud-ring {
	position: absolute;
	right: 8%;
	top: 50%;
	transform: translateY(-50%);
	width: 360px;
	height: 360px;
	pointer-events: none;
	opacity: 0.28;
	animation: heroFade 1.2s 0.5s ease both; /* fades in with slight delay */
}

/* The SVG circles spin slowly clockwise */
.hud-ring svg {
	width: 100%;
	height: 100%;
	animation: spinSlow 30s linear infinite;
}

/* Inner ring element spins counter-clockwise */
.hud-inner {
	position: absolute;
	inset: 28px;
	border: 1px solid rgba(0, 229, 204, 0.35);
	border-radius: 50%;
	animation: spinSlow 20s linear infinite reverse;
}

/* Innermost dashed ring - static (no spin) */
.hud-inner::before {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px dashed rgba(0, 229, 204, 0.25);
	border-radius: 50%;
}

/* Shared slow spin animation */
@keyframes spinSlow {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ── Corner Brackets ──────────────────────────────────────────
   Four decorative L-shaped brackets in the hero corners.
   Each .bracket element uses only the relevant border sides.
   Usage: <div class="bracket tl"></div> (tl/tr/bl/br) */
.bracket {
	position: absolute;
	width: 46px;
	height: 46px;
	border-color: rgba(0, 229, 204, 0.22);
	border-style: solid;
	pointer-events: none;
}
.bracket.tl {
	top: 1.5rem;
	left: 1.5rem;
	border-width: 1px 0 0 1px;
} /* top-left */
.bracket.tr {
	top: 1.5rem;
	right: 1.5rem;
	border-width: 1px 1px 0 0;
} /* top-right */
.bracket.bl {
	bottom: 1.5rem;
	left: 1.5rem;
	border-width: 0 0 1px 1px;
} /* bottom-left */
.bracket.br {
	bottom: 1.5rem;
	right: 1.5rem;
	border-width: 0 1px 1px 0;
} /* bottom-right */

/* ── Hero Content ─────────────────────────────────────────── */
.hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 2.5rem;
	position: relative;
}

/* "SYSTEM ONLINE - vXXXX" status line above the name */
.hero-status {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.7rem;
	color: var(--cyan);
	letter-spacing: 0.3em;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	animation: heroFade 0.6s ease both;
}

/* Pulsing dot to the left of the status text */
.status-dot {
	width: 7px;
	height: 7px;
	background: var(--cyan);
	border-radius: 50%;
	box-shadow:
		0 0 8px var(--cyan),
		0 0 20px rgba(0, 229, 204, 0.5);
	animation: pulse 2.5s infinite;
}

/* Pulse animation - scales down and dims, simulating a heartbeat */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.4;
		transform: scale(0.7);
	}
}

/* Giant name - fluid size from 2.8rem (mobile) to 6.5rem (desktop) */
.hero-name {
	font-family: "Orbitron", monospace;
	font-size: clamp(2.8rem, 9vw, 6.5rem);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: 0.04em;
	margin-bottom: 0.6rem;
	animation: heroFade 0.7s 0.1s ease both;
}

/* "Everything" - white shimmer gradient text */
.hero-name .line1 {
	display: block;
	background: linear-gradient(
		135deg,
		#fff 30%,
		rgba(255, 255, 255, 0.75) 50%,
		#fff 70%
	);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: shimmer 4s ease-in-out infinite;
}

/* "by Huy" - cyan shimmer gradient text */
.hero-name .line2 {
	display: block;
	background: linear-gradient(90deg, var(--cyan), #00ffea, #00b8a9, var(--cyan));
	background-size: 300% 100%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: shimmer 3s ease-in-out infinite reverse; /* opposite direction */
	filter: drop-shadow(0 0 22px rgba(0, 229, 204, 0.45));
}

/* Shimmer - animates background-position to slide the gradient */
@keyframes shimmer {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* Domain name below the title */
.hero-domain {
	font-family: "Share Tech Mono", monospace;
	font-size: clamp(0.85rem, 1.8vw, 1.1rem);
	color: var(--magenta);
	letter-spacing: 0.25em;
	margin-bottom: 2.2rem;
	filter: drop-shadow(0 0 12px rgba(255, 45, 120, 0.45));
	animation: heroFade 0.7s 0.2s ease both;
}

/* Tagline paragraph */
.hero-tagline {
	font-size: clamp(1rem, 2.2vw, 1.3rem);
	font-weight: 300;
	color: var(--text);
	max-width: 520px;
	line-height: 1.75;
	margin-bottom: 3rem;
	animation: heroFade 0.7s 0.3s ease both;
}

/* Highlighted word inside tagline - <span class="hl"> */
.hero-tagline .hl {
	color: var(--cyan);
	font-weight: 600;
}

/* CTA button row */
.hero-cta {
	display: flex;
	gap: 1rem;
	animation: heroFade 0.7s 0.4s ease both;
}

/* Hero fade-in - used for status, name, tagline, CTA with staggered delays */
@keyframes heroFade {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Scroll Indicator ─────────────────────────────────────────
   Centered at the bottom of the hero. "scroll" text + animated line. */
.scroll-ind {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	animation: heroFade 1s 0.9s ease both;
}

.scroll-ind span {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.72rem;
	color: var(--muted);
	letter-spacing: 0.3em;
}

/* The dropping line - scales in from top, then disappears from bottom */
.scroll-line {
	width: 2px;
	height: 52px;
	background: linear-gradient(to bottom, var(--cyan), transparent);
	animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
	0% {
		transform: scaleY(0);
		transform-origin: top;
		opacity: 0;
	}
	50% {
		transform: scaleY(1);
		opacity: 1;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
		opacity: 0;
	}
}

/* ============================================================
   TICKER STRIP
   Horizontal scrolling marquee of tech stack keywords.
   Sits between Hero and About as a visual divider.
   ============================================================ */

/* Outer wrapper - full-width strip for the borders + glow spot */
.ticker-wrap {
	position: relative;
	z-index: 0;
	padding: 1.2rem 0;
	border-top: 1px solid rgba(0, 229, 204, 0.07);
	border-bottom: 1px solid rgba(0, 229, 204, 0.07);
}

/* Subtle radial glow behind the ticker content */
.ticker-wrap::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 700px;
	height: 120px;
	background: radial-gradient(
		ellipse,
		rgba(0, 229, 204, 0.04) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

/* "STACK" label badge at the left edge */
/* Inner container - constrains badge + scroll to the same max-width as all sections */
.ticker-inner {
	display: flex;
	align-items: center;
	width: 100%;
}

/* Arrow-right clip-path with a fade-out pseudo-element to blend into scroll */
.ticker-badge {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.72rem;
	background: var(--cyan);
	color: var(--bg);
	font-weight: bold;
	padding: 0.35rem 1.1rem;
	letter-spacing: 0.2em;
	clip-path: polygon(
		0 0,
		calc(100% - 8px) 0,
		100% 50%,
		calc(100% - 8px) 100%,
		0 100%
	);
}

/* Fade-out gradient after the badge to blend with the ticker */
.ticker-badge::after {
	content: "";
	position: absolute;
	top: 0;
	left: 100%;
	width: 48px;
	height: 100%;
	background: linear-gradient(90deg, var(--bg), transparent);
	pointer-events: none;
}

/* Scrollable area - clips the overflowing track */
.ticker-scroll {
	flex: 1;
	overflow: hidden;
	min-width: 0;
	position: relative;
	z-index: 1;
}

/* The inner track - content is duplicated in HTML for seamless looping */
/* Animation moves it left by exactly 50% (one copy of the list) */
.ticker-track {
	display: flex;
	gap: 3rem;
	animation: ticker 18s linear infinite;
	white-space: nowrap;
}

/* Pause on hover so users can read items */
.ticker-track:hover {
	animation-play-state: paused;
}

/* Ticker scroll animation - translates the full first copy off-screen */
@keyframes ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	} /* -50% = one full copy of the list */
}

/* Individual ticker item */
.tick {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.82rem;
	color: var(--muted);
	letter-spacing: 0.12em;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: color 0.2s;
}

/* Diamond separator before each item */
.tick::before {
	content: "◆";
	font-size: 0.35rem;
	color: rgba(0, 229, 204, 0.35);
}

.tick:hover {
	color: var(--cyan);
}

/* ============================================================
   ABOUT SECTION
   Two-column layout: bio text on the left, info card on the right.
   ============================================================ */

#about {
	/* Gradient that peaks at --surface in the middle */
	background: linear-gradient(
		180deg,
		var(--bg) 0%,
		var(--surface) 50%,
		var(--bg) 100%
	);
}

/* Decorative ambient spots - blurred circle glows behind content */
/* Left: cyan tint, top-left corner */
.about-spot-l {
	position: absolute;
	top: -80px;
	left: -180px;
	width: 550px;
	height: 550px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.055) 0%,
		transparent 60%
	);
	filter: blur(70px);
	pointer-events: none;
}

/* Right: violet tint, bottom-right corner */
.about-spot-r {
	position: absolute;
	bottom: -80px;
	right: -80px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(123, 47, 255, 0.045) 0%,
		transparent 60%
	);
	filter: blur(80px);
	pointer-events: none;
}

/* Two-column grid: bio | info card */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
	position: relative;
	z-index: 1; /* above the ambient spots */
}

/* Bio text column */
.about-text {
	font-size: 0.97rem;
	line-height: 1.95;
	color: var(--text);
}
.about-text p {
	margin-bottom: 1.3rem;
}

/* Inline highlighted terms - <em> repurposed, not italic */
.about-text em {
	color: var(--cyan);
	font-style: normal;
}

/* ── Info Card - reusable "terminal-style data card" ──────────
   Dark glassmorphism card with clipped corners and a cyan corner pip.
   Used in the About section to display personal facts. */
.info-card {
	background: linear-gradient(
		135deg,
		rgba(8, 8, 18, 0.92),
		rgba(12, 12, 26, 0.88)
	);
	border: 1px solid var(--border);
	padding: 2rem 1.75rem;
	position: relative;
	/* Clip bottom-left and top-right corners at 22px - cyberpunk bevel */
	clip-path: polygon(
		0 0,
		calc(100% - 22px) 0,
		100% 22px,
		100% 100%,
		22px 100%,
		0 calc(100% - 22px)
	);
	box-shadow: inset 0 0 50px rgba(0, 229, 204, 0.02);
	transition:
		border-color 0.3s,
		box-shadow 0.3s,
		filter 0.3s,
		transform 0.35s;
}

/* Hover - lift + border brightens + outer glow
   Uses drop-shadow instead of box-shadow because clip-path clips box-shadow */
.info-card:hover {
	border-color: rgba(0, 229, 204, 0.28);
	transform: translateY(-4px);
	box-shadow: inset 0 0 50px rgba(0, 229, 204, 0.05);
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.3))
		drop-shadow(0 0 20px rgba(0, 229, 204, 0.1));
}

/* Solid cyan triangle fills the beveled top-right corner */
.info-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 22px;
	height: 22px;
	background: var(--cyan);
	clip-path: polygon(0 0, 100% 100%, 100% 0);
}

/* Subtle inner glow at the card center */
.info-card::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.04) 0%,
		transparent 70%
	);
	filter: blur(20px);
	pointer-events: none;
}

/* ── Info Rows - key/value pairs inside .info-card ──────────── */
/* ::before - left accent bar (slides in on hover)
   ::after  - scan sweep (one-shot animation on hover) */
.info-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.55rem 0.6rem 0.55rem 0.6rem;
	border-bottom: 1px solid rgba(0, 229, 204, 0.06); /* hairline separator */
	gap: 1rem;
	position: relative;
	z-index: 1; /* above the ::after glow */
	overflow: hidden;
	cursor: default;
	transition: background 0.2s;
}

/* Left accent bar - scales in from top on hover */
.info-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--cyan);
	box-shadow: 0 0 8px var(--cyan);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.2s ease;
}

/* Scan sweep - a gradient that slides across once on hover */
.info-row::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(0, 229, 204, 0.07) 50%,
		transparent 100%
	);
	transform: translateX(-100%);
	pointer-events: none;
}

.info-row:hover {
	background: rgba(0, 229, 204, 0.035);
}

/* Reveal the left bar */
.info-row:hover::before {
	transform: scaleY(1);
}

/* Trigger the one-shot scan sweep on hover */
.info-row:hover::after {
	animation: rowScan 0.5s ease forwards;
}

/* Scan sweeps left → right and disappears off the edge */
@keyframes rowScan {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(100%);
	}
}

/* No border on the last row */
.info-row:last-child {
	border-bottom: none;
}

/* Key - brightens from muted to white on hover */
.info-k {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.62rem;
	color: var(--muted);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	flex-shrink: 0;
	transition: color 0.2s;
}
.info-row:hover .info-k {
	color: #fff;
}

/* Value - glows brighter on hover */
.info-v {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.78rem;
	color: var(--cyan);
	text-align: right;
	transition: text-shadow 0.2s;
}
.info-row:hover .info-v {
	text-shadow: var(--cyan-glow);
}

/* ============================================================
   QUOTES SECTION
   Three-column grid of quote cards on a surface background.
   ============================================================ */

#quotes {
	background: var(--surface);
	position: relative;
}

/* Central mixed-color glow behind all cards */
.quotes-spot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 900px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(
		ellipse,
		rgba(123, 47, 255, 0.05) 0%,
		rgba(0, 229, 204, 0.03) 40%,
		transparent 70%
	);
	filter: blur(60px);
	pointer-events: none;
}

/* Three equal-width columns */
.quotes-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	position: relative;
	z-index: 1;
}

/* ── Quote Card - reusable card component ────────────────────
   Dark semi-transparent card with cyan glow on hover.
   Contains .q-mark, .q-text, and .q-author.
   ::before - always-visible corner radial glow (decorative)
   ::after  - top-edge glow line, hidden until hover */
.quote-card {
	padding: 2rem;
	border: 1px solid var(--border);
	background: linear-gradient(
		135deg,
		rgba(8, 8, 18, 0.8),
		rgba(12, 12, 26, 0.6)
	);
	position: relative;
	overflow: hidden;
	transition:
		border-color 0.3s,
		box-shadow 0.3s,
		transform 0.35s;
}

/* Subtle radial highlight at the top-right corner - always visible */
.quote-card::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.07) 0%,
		transparent 70%
	);
	filter: blur(20px);
	pointer-events: none;
}

/* Top-edge glow line - hidden by default, revealed on hover */
.quote-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
	opacity: 0;
	transition: opacity 0.3s;
}

/* Hover - lift, border brightens, deep shadow + top-edge line reveal */
.quote-card:hover {
	border-color: rgba(0, 229, 204, 0.28);
	transform: translateY(-4px);
	box-shadow:
		0 16px 50px rgba(0, 0, 0, 0.3),
		0 0 30px rgba(0, 229, 204, 0.05);
}
.quote-card:hover::after {
	opacity: 1;
}

/* Large decorative opening quotation mark */
.q-mark {
	font-family: "Orbitron", monospace;
	font-size: 5rem;
	color: var(--cyan);
	opacity: 0.1; /* very faint - decorative only */
	line-height: 0.8;
	margin-bottom: 1rem;
	display: block;
}

/* Quote body text */
.q-text {
	font-style: italic;
	font-size: 0.93rem;
	line-height: 1.75;
	color: var(--text);
	margin-bottom: 1.5rem;
}

/* Attribution line - "- Author Name" */
.q-author {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.62rem;
	color: var(--cyan);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.q-author::before {
	content: "- "; /* em dash prefix */
}

/* ============================================================
   TECH STACK SECTION
   Badge grid showing proficiency level per technology.
   ============================================================ */

#stacks {
	background: linear-gradient(
		180deg,
		var(--bg) 0%,
		var(--surface) 50%,
		var(--bg) 100%
	);
}

/* Three ambient spots: left (cyan), right (magenta), center (violet) */
.stacks-spot-l {
	position: absolute;
	top: 20%;
	left: -200px;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.04) 0%,
		transparent 60%
	);
	filter: blur(80px);
	pointer-events: none;
}
.stacks-spot-r {
	position: absolute;
	bottom: 10%;
	right: -100px;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(255, 45, 120, 0.03) 0%,
		transparent 60%
	);
	filter: blur(80px);
	pointer-events: none;
}
.stacks-spot-c {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 700px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(
		ellipse,
		rgba(123, 47, 255, 0.025) 0%,
		transparent 70%
	);
	filter: blur(60px);
	pointer-events: none;
}

/* ── Badge Legend - color-coded proficiency key ──────────────
   Sits above the badge grid. Uses .legend-pip as colored swatches. */
.badge-legend {
	display: flex;
	gap: 1.75rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.62rem;
	color: var(--muted);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Pip swatch - small parallelogram color block */
.legend-pip {
	width: 22px;
	height: 8px;
	clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* Pip color variants - one per proficiency level */
.lp-daily {
	background: var(--cyan);
	box-shadow: 0 0 8px rgba(0, 229, 204, 0.5);
} /* Daily Driver */
.lp-prod {
	background: #a47fff;
	box-shadow: 0 0 8px rgba(123, 47, 255, 0.4);
} /* Production   */
.lp-solid {
	background: var(--amber);
	box-shadow: 0 0 8px rgba(255, 171, 0, 0.4);
} /* Solid        */
.lp-fam {
	background: #ff6fa0;
	box-shadow: 0 0 8px rgba(255, 45, 120, 0.3);
} /* Familiar     */

/* ── Badge Grid - wrapper for all category groups ────────────  */
.badge-grid {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	position: relative;
	z-index: 1;
}

/* ── Badge Category - a labeled group of badge rows ──────────
   Full-width label + auto-fill grid of rows beneath it */
.badge-category {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.badge-cat-label {
	font-family: "Orbitron", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cyan);
	opacity: 0.75;
	padding: 0 0 0.5rem 0;
	border-bottom: 1px solid rgba(0, 229, 204, 0.25);
	margin-bottom: 0.25rem;
}

.badge-cat-rows {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 0.5rem;
}

/* ── Badge Row - single tech item with name + status ─────────
   Each row is a horizontal flex container: tech name | status pill
   ::before - top-edge glow line, hidden until hover */
.badge-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.1rem;
	background: rgba(8, 8, 18, 0.8);
	border: 1px solid rgba(0, 229, 204, 0.08);
	position: relative;
	overflow: hidden;
	transition:
		border-color 0.25s,
		background 0.25s,
		box-shadow 0.25s;
}

/* Top-edge glow line - hidden by default, revealed on hover */
.badge-row::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
	opacity: 0;
	transition: opacity 0.25s;
}

.badge-row:hover {
	border-color: rgba(0, 229, 204, 0.25);
	background: rgba(0, 229, 204, 0.025);
	box-shadow:
		0 0 20px rgba(0, 229, 204, 0.04),
		inset 0 0 15px rgba(0, 229, 204, 0.02);
}
.badge-row:hover::before {
	opacity: 1;
}

/* Tech name - with a small cyan dot prefix */
.badge-tech {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.78rem;
	color: var(--text);
	letter-spacing: 0.08em;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

/* Small glowing dot before each tech name */
.badge-tech::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 6px var(--cyan);
	flex-shrink: 0;
}

/* Status pill - parallelogram shaped with color-coded bg/text/border */
.badge-status {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.55rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 0.22rem 0.65rem;
	clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
	white-space: nowrap;
}

/* Status color variants - matches the legend pips above */
.s-daily {
	background: rgba(0, 229, 204, 0.12);
	color: var(--cyan);
	border: 1px solid rgba(0, 229, 204, 0.3);
}
.s-prod {
	background: rgba(123, 47, 255, 0.12);
	color: #a47fff;
	border: 1px solid rgba(123, 47, 255, 0.3);
}
.s-solid {
	background: rgba(255, 171, 0, 0.1);
	color: var(--amber);
	border: 1px solid rgba(255, 171, 0, 0.25);
}
.s-fam {
	background: rgba(255, 45, 120, 0.08);
	color: #ff6fa0;
	border: 1px solid rgba(255, 45, 120, 0.22);
}

/* ============================================================
   PROJECTS SECTION
   3-column card grid showcasing tools and built projects.
   ============================================================ */

#projects {
	background: var(--bg);
}

/* Large centered glow spot behind the project grid */
.proj-spot {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(
		ellipse,
		rgba(0, 229, 204, 0.03) 0%,
		rgba(123, 47, 255, 0.02) 50%,
		transparent 70%
	);
	filter: blur(80px);
	pointer-events: none;
}

/* Three-column grid for project cards */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	position: relative;
	z-index: 1;
}

/* ── Project Card - reusable card with reveal effects on hover ─
   Two pseudo-elements are used:
     ::before - diagonal gradient overlay (opacity: 0 → 1 on hover)
     ::after  - top-edge line highlight  (opacity: 0 → 1 on hover) */
.proj-card {
	background: linear-gradient(
		160deg,
		rgba(10, 10, 20, 0.92),
		rgba(8, 8, 16, 0.96)
	);
	border: 1px solid rgba(0, 229, 204, 0.1);
	padding: 1.6rem;
	position: relative;
	overflow: hidden;
	transition:
		border-color 0.3s,
		transform 0.35s,
		box-shadow 0.3s;
}

/* Diagonal gradient shimmer - revealed on hover */
.proj-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(0, 229, 204, 0.04) 0%,
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.3s;
}

/* Top-edge glow line - revealed on hover */
.proj-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cyan), transparent);
	opacity: 0;
	transition: opacity 0.3s;
}

/* Hover - lift, border brightens, reveal pseudo-elements */
.proj-card:hover {
	border-color: rgba(0, 229, 204, 0.28);
	transform: translateY(-4px); /* subtle float-up */
	box-shadow:
		0 16px 50px rgba(0, 0, 0, 0.3),
		0 0 30px rgba(0, 229, 204, 0.05);
}
.proj-card:hover::before,
.proj-card:hover::after {
	opacity: 1;
}

/* When .proj-card is an <a> tag - reset browser link defaults */
a.proj-card {
	text-decoration: none;
	color: inherit;
	display: block; /* <a> is inline by default, needs block for grid */
}

/* Project index number - "001", "002", etc. */
.proj-idx {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.65rem;
	color: var(--muted);
	letter-spacing: 0.2em;
	margin-bottom: 0.6rem;
}

/* Project name - cyan Orbitron heading */
.proj-name {
	font-family: "Orbitron", monospace;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--cyan);
	letter-spacing: 0.1em;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

/* Project description - small muted body copy */
.proj-desc {
	font-size: 0.88rem;
	color: var(--muted);
	line-height: 1.65;
	font-weight: 300;
}

/* Project link - "→ domain.com" inline link */
.proj-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.9rem;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.68rem;
	color: var(--cyan);
	text-decoration: none;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	transition:
		color 0.2s,
		filter 0.2s;
}
.proj-link:hover {
	color: #fff;
	filter: drop-shadow(0 0 6px rgba(0, 229, 204, 0.5));
}
.proj-link::before {
	content: "→ "; /* arrow prefix */
}

/* ============================================================
   CONTACT SECTION
   Two-column layout: terminal display | contact form.
   ============================================================ */

#contact {
	background: linear-gradient(
		180deg,
		var(--bg) 0%,
		var(--surface) 60%,
		var(--bg) 100%
	);
}

/* Ambient spots - right: cyan, left: magenta */
.contact-spot-r {
	position: absolute;
	top: 0;
	right: -200px;
	width: 700px;
	height: 700px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.05) 0%,
		transparent 60%
	);
	filter: blur(80px);
	pointer-events: none;
}
.contact-spot-l {
	position: absolute;
	bottom: 0;
	left: -100px;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(255, 45, 120, 0.03) 0%,
		transparent 60%
	);
	filter: blur(80px);
	pointer-events: none;
}

/* Two equal columns: info + terminal | form */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
	position: relative;
	z-index: 1;
}

/* Intro paragraph above the terminal */
.contact-info p {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--text);
	margin-bottom: 2rem;
}

/* ── Terminal Widget - fake macOS-style terminal window ───────
   Used to display contact details in a fun, on-brand way. */
.terminal {
	background: #000;
	border: 1px solid rgba(0, 229, 204, 0.18);
	padding: 1.5rem;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.73rem;
	line-height: 1.9;
	position: relative;
	box-shadow:
		0 0 40px rgba(0, 229, 204, 0.04),
		inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Traffic-light button bar at the top of the terminal */
.t-bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 229, 204, 0.1);
}

/* macOS-style window control dots */
.t-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.t-dot.r {
	background: #ff5f57;
} /* red    - close  */
.t-dot.y {
	background: #febc2e;
} /* yellow - minimize */
.t-dot.g {
	background: #28c840;
} /* green  - fullscreen */

/* Terminal output line container */
.t-line {
	display: flex;
	gap: 0.5rem;
}

/* Prompt - cyan email/path prefix */
.t-prompt {
	color: var(--cyan);
}

/* Command text after the prompt */
.t-cmd {
	color: var(--text);
}

/* Output line - indented, muted by default */
.t-out {
	color: var(--muted);
	padding-left: 1.5rem;
}

/* Success output - green */
.t-out.ok {
	color: #4ade80;
}

/* Blinking cursor block */
.t-cursor {
	display: inline-block;
	width: 7px;
	height: 0.75em;
	background: var(--cyan);
	vertical-align: -0.1em;
	animation: blink 1s step-end infinite;
}

/* Cursor blink - hard cut between visible and invisible (step-end) */
@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* ── Contact Form ─────────────────────────────────────────────
   Vertical flex stack of labeled input groups. */
.cform {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

/* Form group - label + input/textarea stacked vertically */
.fg {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

/* Field label - cyan monospace uppercase */
.flabel {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.62rem;
	color: var(--cyan);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* Shared input/textarea styles */
.finput,
.ftarea {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(0, 229, 204, 0.13);
	color: var(--text);
	padding: 0.9rem 1rem;
	font-family: "Share Tech Mono", monospace;
	font-size: 0.78rem;
	outline: none;
	resize: none;
	transition:
		border-color 0.25s,
		box-shadow 0.25s;
}

/* Focus state - border brightens with a double glow ring */
.finput:focus,
.ftarea:focus {
	border-color: var(--cyan);
	box-shadow:
		0 0 0 1px rgba(0, 229, 204, 0.12),
		0 0 20px rgba(0, 229, 204, 0.05);
}

/* Textarea specific - taller min-height */
.ftarea {
	min-height: 110px;
}

/* Form feedback message - hidden by default, shown via JS */
.form-msg {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	padding: 0.6rem 0;
	display: none; /* JS adds .ok or .err to show */
}
.form-msg.ok {
	color: #4ade80;
	display: block;
} /* success - green */
.form-msg.err {
	color: #ff2d78;
	display: block;
} /* error   - magenta */

/* ── Send Button ──────────────────────────────────────────────
   Full-width submit button with a horizontal shine sweep on hover.
   The sweep uses a ::before pseudo-element that slides right. */
.btn-send {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 0.95rem;
	background: transparent;
	border: 1px solid rgba(0, 229, 204, 0.28);
	color: var(--cyan);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: border-color 0.25s;
	width: 100%;
}

/* Horizontal shine sweep - starts off-screen left, sweeps to right on hover */
.btn-send::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(0, 229, 204, 0.07),
		transparent
	);
	transform: translateX(-100%);
	transition: transform 0.5s ease;
}
.btn-send:hover {
	border-color: var(--cyan);
}
.btn-send:hover::before {
	transform: translateX(100%); /* sweep across */
}

/* Keeps the button text above the ::before sweep layer */
.btn-send span {
	position: relative;
	z-index: 1;
}

/* Disabled state - shown while form is submitting */
.btn-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Honeypot - hidden from real users, bots fill it ─────────
   Keeps the field invisible and non-interactive without display:none
   (which some bots can detect). */
.honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	pointer-events: none;
}

/* ============================================================
   CUSTOM CURSOR
   Three-layer cyberpunk cursor - only active on pointer devices
   (desktops/laptops). Hidden on touch screens via JS matchMedia.

   #cursor-dot  - 6px precise dot, snaps instantly to mouse
   #cursor-ring - 28px ring, trails behind via CSS transition
   #cursor-glow - 500px ambient spotlight, lerp-smoothed via JS
   ============================================================ */

/* Hide the native cursor site-wide on pointer devices */
/* Applied to * because links/buttons/inputs override cursor on body alone */
body:has(#cursor-dot),
body:has(#cursor-dot) * {
	cursor: none !important;
}

/* Hide all cursor elements on touch devices - JS won't move them anyway */
@media (pointer: coarse) {
	#cursor-dot,
	#cursor-ring,
	#cursor-ring-2,
	#cursor-ring-3,
	#cursor-glow {
		display: none;
	}
}

/* Shared base - fixed, non-interactive, centered on position */
#cursor-dot,
#cursor-ring,
#cursor-ring-2,
#cursor-ring-3,
#cursor-glow {
	position: fixed;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 99999;
	transition: opacity 0.3s;
}

/* Precise dot - snaps to cursor with no lag */
/* --cursor-c controls the active color; defaults to cyan, shifts to magenta on links */
#cursor-dot {
	--cursor-c: var(--cyan);
	width: 9px;
	height: 9px;
	background: var(--cursor-c);
	border-radius: 50%;
	box-shadow:
		0 0 8px var(--cursor-c),
		0 0 16px var(--cursor-c);
	transition:
		background 0.2s,
		box-shadow 0.2s;
}
#cursor-dot.clickable {
	--cursor-c: var(--amber);
}

/* Trailing ring */
#cursor-ring {
	--cursor-c: var(--cyan);
	width: 38px;
	height: 38px;
	border: 1px solid rgba(0, 229, 204, 0.7);
	border-radius: 50%;
	box-shadow:
		0 0 8px rgba(0, 229, 204, 0.2),
		inset 0 0 8px rgba(0, 229, 204, 0.05);
	transition:
		width 0.2s ease,
		height 0.2s ease,
		border-color 0.2s,
		box-shadow 0.2s,
		opacity 0.3s;
}
#cursor-ring.clickable {
	--cursor-c: var(--amber);
	border-color: rgba(255, 171, 0, 0.7);
	box-shadow:
		0 0 8px rgba(255, 171, 0, 0.2),
		inset 0 0 8px rgba(255, 171, 0, 0.05);
}

/* Hover - main ring becomes dashed and spins (target-lock reticle) */
#cursor-ring.hovered {
	width: 38px;
	height: 38px;
	border-style: dashed;
	border-color: var(--cursor-c);
	box-shadow:
		0 0 10px var(--cursor-c),
		inset 0 0 8px var(--cursor-c);
	animation: ringLock 2.5s linear infinite;
}

/* Spin animation - must include translate so centering isn't lost */
@keyframes ringLock {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* ── Converging rings - appear and close inward on hover ─────
   ring-2 and ring-3 run the same keyframe, offset by half a cycle.
   --cursor-c switches to magenta when .clickable is added.         */
#cursor-ring-2,
#cursor-ring-3 {
	--cursor-c: var(--cyan);
	width: 0;
	height: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	opacity: 0;
}
#cursor-ring-2.clickable,
#cursor-ring-3.clickable {
	--cursor-c: var(--amber);
}

#cursor-ring-2.hovered {
	animation: closingIn 0.9s cubic-bezier(0.2, 0, 0.4, 1) infinite;
}
#cursor-ring-3.hovered {
	animation: closingIn 0.9s cubic-bezier(0.2, 0, 0.4, 1) 0.45s infinite;
}

/* Starts large, shrinks inward, fades - uses --cursor-c for color */
@keyframes closingIn {
	0% {
		width: 80px;
		height: 80px;
		opacity: 0;
		border-color: transparent;
	}
	15% {
		opacity: 0.7;
		border-color: var(--cursor-c);
	}
	100% {
		width: 38px;
		height: 38px;
		opacity: 0;
		border-color: transparent;
	}
}

/* Ambient spotlight - large soft glow, lerp-smoothed in JS for silky motion */
#cursor-glow {
	width: 500px;
	height: 500px;
	background: radial-gradient(
		circle,
		rgba(0, 229, 204, 0.09) 0%,
		rgba(0, 229, 204, 0.03) 40%,
		transparent 70%
	);
	border-radius: 50%;
	z-index: 9998; /* just below the cursor dot/ring */
	mix-blend-mode: screen; /* additive blend - visible over any background color */
}

/* ============================================================
   FOOTER
   Minimal centered text footer with a top glowing line.
   ============================================================ */

footer {
	position: relative;
	z-index: 1;
	padding: 2.5rem 2rem;
	border-top: 1px solid rgba(0, 229, 204, 0.05);
	text-align: center;
	background: var(--bg);
}

/* Decorative centered glow line at the very top of the footer */
footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(0, 229, 204, 0.18),
		transparent
	);
}

footer p {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.72rem;
	color: var(--muted);
	letter-spacing: 0.2em;
}

footer a {
	color: var(--cyan);
	text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   Three breakpoints:
     ≤1024px  tablet   - tighten grids
     ≤768px   mobile   - hamburger nav, single column, reduced spacing
     ≤480px   small    - further size reductions for small phones
   ============================================================ */

/* ── Hamburger button - hidden on desktop ─────────────────── */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 4px;
	cursor: none; /* custom cursor handles this */
	z-index: 9001;
}

/* Three horizontal bars */
.nav-toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--cyan);
	transition:
		transform 0.25s ease,
		opacity 0.25s ease;
	transform-origin: center;
}

/* Animate to × when open */
.nav-toggle.open span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Tablet (≤1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
	/* Projects: 2 columns instead of 3 */
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Quotes: 2 columns instead of 3 */
	.quotes-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Slightly tighten section spacing */
	section {
		padding: 5rem 0;
	}

	/* HUD ring: smaller on tablet */
	.hud-ring {
		width: 280px;
		height: 280px;
		right: 2%;
	}
}

/* ── Mobile (≤768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
	/* ── Nav ── */
	.nav-toggle {
		display: flex; /* show hamburger */
	}

	/* Nav links: hidden by default, drop down as full-width menu when .open */
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(4, 4, 12, 0.97);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--border);
		padding: 0.5rem 0;
	}
	.nav-links.open {
		display: flex;
	}
	.nav-links li {
		width: 100%;
	}
	.nav-links a {
		display: block;
		padding: 0.9rem 2rem;
		font-size: 0.75rem;
	}
	/* Underline animation doesn't suit full-width links */
	.nav-links a::after {
		display: none;
	}

	/* ── Global spacing ── */
	section {
		padding: 4rem 0;
	}
	.container {
		padding: 0 1.25rem;
	}

	/* ── Hero ── */
	#hero {
		padding-top: 5rem; /* clear the fixed nav */
	}
	.hero-inner {
		padding: 0 1.25rem;
	}
	.hero-cta {
		flex-wrap: wrap;
		gap: 0.75rem;
	}
	.btn {
		font-size: 0.65rem;
		padding: 0.8rem 1.6rem;
	}
	/* Hide corner brackets and HUD ring - too noisy on small screens */
	.bracket,
	.hud-ring {
		display: none;
	}
	/* Tighten hero spacing */
	.hero-status {
		margin-bottom: 1.25rem;
		font-size: 0.6rem;
	}
	.hero-name {
		margin-bottom: 0.5rem;
	}
	.hero-domain {
		margin-bottom: 1.5rem;
	}
	.hero-tagline {
		margin-bottom: 2rem;
	}

	/* ── About ── */
	.about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.info-card {
		padding: 1.5rem 1.25rem;
	}

	/* ── Quotes ── */
	.quotes-grid {
		grid-template-columns: 1fr;
	}

	/* ── Stacks ── */
	.badge-cat-rows {
		grid-template-columns: 1fr;
	}
	.badge-legend {
		gap: 1rem;
	}

	/* ── Projects ── */
	.projects-grid {
		grid-template-columns: 1fr;
	}

	/* ── Contact ── */
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	/* Terminal: smaller font so it doesn't overflow */
	.terminal {
		font-size: 0.65rem;
	}

	/* ── Section titles ── */
	h2.section-title {
		margin-bottom: 2rem;
	}

	/* Scroll indicator overlaps hero content on mobile - not needed on touch */
	.scroll-ind {
		display: none;
	}

	/* Ticker: faster + tighter spacing on mobile */
	.ticker-track {
		animation-duration: 5s;
		gap: 1.25rem;
	}
}

/* ── Small phones (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
	nav {
		padding: 1rem 1.25rem;
	}

	.container {
		padding: 0 1rem;
	}

	section {
		padding: 3rem 0;
	}

	/* CTA buttons stack to full width */
	.hero-cta {
		flex-direction: column;
	}
	.btn {
		width: 100%;
		text-align: center;
	}

	/* Badge legend wraps tighter */
	.badge-legend {
		gap: 0.75rem;
	}

	/* Quote and project cards: tighter padding */
	.quote-card,
	.proj-card {
		padding: 1.25rem;
	}

	/* Contact form */
	.finput,
	.ftarea {
		font-size: 0.72rem;
	}
}
