/*
Theme Name: Jeelani Portfolio
Theme URI:
Author: Arjun Biju
Author URI:
Description: A dark sci-fi themed personal blog and portfolio inspired by cassidoo.co and the Aliens/Predator franchise. Phosphor green accents, monospace typography, motion-tracker aesthetics. Child theme of Twenty Twenty-Five.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: jeelani-portfolio
Tags: one-column, blog, portfolio, custom-colors, full-site-editing, block-patterns
*/

/* ------------------------------------------------
   Subtle scanline overlay on body
   ------------------------------------------------ */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.03) 2px,
		rgba(0, 0, 0, 0.03) 4px
	);
}

/* ------------------------------------------------
   Hero: headshot tight next to name
   ------------------------------------------------ */
.jeelani-hero-top {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.jeelani-hero-avatar {
	flex-shrink: 0;
	position: relative;
}

.jeelani-hero-avatar img {
	border-radius: 50%;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--accent-1);
	box-shadow: 0 0 20px rgba(57, 255, 20, 0.2), 0 0 40px rgba(57, 255, 20, 0.05);
}

.jeelani-hero-avatar::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1px solid rgba(57, 255, 20, 0.15);
	animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
	0%, 100% { opacity: 0.3; transform: scale(1); }
	50% { opacity: 0.8; transform: scale(1.04); }
}

.jeelani-hero-text h1 {
	margin: 0 0 0.05em 0;
	line-height: 1.1;
	letter-spacing: 0.04em;
}

.jeelani-hero-text h2 {
	color: var(--wp--preset--color--accent-1);
	margin: 0;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium) !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-family: var(--wp--preset--font-family--space-mono);
}

/* ------------------------------------------------
   Nav: centered, spaced, monospace
   ------------------------------------------------ */
.jeelani-nav {
	text-align: center;
	padding: 1.2rem 0;
	position: sticky;
	top: 0;
	background: var(--wp--preset--color--base);
	z-index: 100;
	border-bottom: 1px solid rgba(57, 255, 20, 0.08);
}

.jeelani-nav .wp-block-navigation {
	justify-content: center;
}

.jeelani-nav a {
	text-decoration: none !important;
	color: var(--wp--preset--color--accent-4) !important;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.1em;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.jeelani-nav a:hover,
.jeelani-nav a[aria-current="page"] {
	color: var(--wp--preset--color--accent-1) !important;
	text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

/* ------------------------------------------------
   Bio
   ------------------------------------------------ */
.jeelani-bio p {
	margin-bottom: 1em;
	color: var(--wp--preset--color--accent-4);
}

/* ------------------------------------------------
   Section headings: military briefing style
   ------------------------------------------------ */
.jeelani-section-heading {
	text-align: center;
	font-family: var(--wp--preset--font-family--rajdhani);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--contrast);
	position: relative;
}

.jeelani-section-heading::before,
.jeelani-section-heading::after {
	content: "//";
	color: var(--wp--preset--color--accent-1);
	opacity: 0.5;
	margin: 0 0.5em;
	font-weight: 400;
}

/* ------------------------------------------------
   Post list items
   ------------------------------------------------ */
.jeelani-post-item {
	margin-bottom: 2rem;
	padding-left: 1rem;
	border-left: 2px solid rgba(57, 255, 20, 0.12);
	transition: border-color 0.2s ease;
}

.jeelani-post-item:hover {
	border-left-color: var(--wp--preset--color--accent-1);
}

.jeelani-post-title-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.jeelani-post-title-row .wp-block-post-title {
	margin: 0;
}

.jeelani-post-title-row .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--rajdhani);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.jeelani-post-title-row .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
	text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.jeelani-post-date-inline {
	color: var(--wp--preset--color--accent-4);
	font-style: italic;
	white-space: nowrap;
}

.jeelani-post-excerpt {
	margin: 0.3em 0 0.5em 0;
}

.jeelani-post-excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--wp--preset--color--accent-4);
}

/* ------------------------------------------------
   Tags: terminal bracket style with green glow
   Instead of colored underscores, tags look like
   system readouts: [technical] [learning]
   ------------------------------------------------ */
.jeelani-tags,
.jeelani-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.jeelani-tag-cloud {
	justify-content: center;
	gap: 0.5rem;
}

.jeelani-tags a,
.jeelani-tag-cloud a {
	display: inline-block;
	font-size: 0.75rem !important;
	font-family: var(--wp--preset--font-family--space-mono) !important;
	text-decoration: none !important;
	color: var(--wp--preset--color--accent-1) !important;
	background: rgba(57, 255, 20, 0.06);
	border: 1px solid rgba(57, 255, 20, 0.2);
	padding: 0.15em 0.6em;
	letter-spacing: 0.05em;
	text-transform: lowercase;
	transition: all 0.2s ease;
	line-height: 1.6;
}

.jeelani-tags a::before,
.jeelani-tag-cloud a::before {
	content: "// ";
	opacity: 0.4;
}

.jeelani-tags a:hover,
.jeelani-tag-cloud a:hover {
	background: rgba(57, 255, 20, 0.12);
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: 0 0 8px rgba(57, 255, 20, 0.15), inset 0 0 8px rgba(57, 255, 20, 0.05);
	text-shadow: 0 0 4px rgba(57, 255, 20, 0.5);
}

/* ------------------------------------------------
   Single post
   ------------------------------------------------ */
.jeelani-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.jeelani-single-meta .wp-block-post-date {
	margin: 0;
	font-style: italic;
	color: var(--wp--preset--color--accent-4);
}

/* ------------------------------------------------
   Post navigation
   ------------------------------------------------ */
.jeelani-post-nav a {
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jeelani-post-nav a:hover {
	color: var(--wp--preset--color--accent-1);
	text-shadow: 0 0 6px rgba(57, 255, 20, 0.3);
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.jeelani-footer {
	text-align: center;
	border-top: 1px solid rgba(57, 255, 20, 0.08);
}

.jeelani-footer p {
	color: var(--wp--preset--color--accent-4);
}

/* ------------------------------------------------
   Divider lines
   ------------------------------------------------ */
.wp-block-separator {
	border-color: rgba(57, 255, 20, 0.1) !important;
}

/* ------------------------------------------------
   Selection highlight
   ------------------------------------------------ */
::selection {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* ------------------------------------------------
   Link glow on hover (global)
   ------------------------------------------------ */
a {
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
	text-shadow: 0 0 6px rgba(57, 255, 20, 0.25);
}

/* ------------------------------------------------
   Tag cloud block override
   ------------------------------------------------ */
.wp-block-tag-cloud.jeelani-tag-cloud a {
	opacity: 1 !important;
}

/* ------------------------------------------------
   MOBILE RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 680px) {
	.jeelani-hero-top {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center;
		gap: 1rem !important;
	}

	.jeelani-hero-avatar img {
		width: 100px;
		height: 100px;
	}

	.jeelani-hero-avatar::after {
		inset: -4px;
	}

	.jeelani-hero-text {
		text-align: center;
	}

	.jeelani-hero-text h1 {
		font-size: 2rem;
	}

	.jeelani-hero-text h2 {
		font-size: 0.75rem !important;
		letter-spacing: 0.15em;
	}

	.jeelani-nav .wp-block-navigation {
		flex-wrap: wrap;
		gap: 0.4rem 1rem !important;
		justify-content: center;
	}

	.jeelani-post-title-row {
		flex-direction: column;
		gap: 0.15rem;
	}

	.jeelani-post-item {
		padding-left: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.jeelani-tags,
	.jeelani-tag-cloud {
		gap: 0.3rem;
		justify-content: flex-start;
	}

	.jeelani-tags a,
	.jeelani-tag-cloud a {
		font-size: 0.7rem !important;
		padding: 0.1em 0.45em;
	}

	.jeelani-bio p {
		font-size: 0.85rem;
	}
}

@media (max-width: 400px) {
	.jeelani-hero-text h1 {
		font-size: 1.6rem;
	}

	.jeelani-hero-avatar img {
		width: 80px;
		height: 80px;
	}

	.jeelani-section-heading::before,
	.jeelani-section-heading::after {
		display: none;
	}
}

/* ------------------------------------------------
   Custom crosshair cursor
   ------------------------------------------------ */
html {
	cursor: crosshair;
}

a, button, [role="button"], input[type="submit"] {
	cursor: pointer;
}

/* ------------------------------------------------
   Scroll progress bar (green scan line)
   ------------------------------------------------ */
.jeelani-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--wp--preset--color--accent-1, #39FF14);
	box-shadow: 0 0 8px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.2);
	z-index: 10000;
	transition: width 0.05s linear;
}

/* ------------------------------------------------
   Typing animation for subtitle
   ------------------------------------------------ */
.jeelani-hero-text h2 {
	overflow: hidden;
	white-space: nowrap;
	border-right: 2px solid var(--wp--preset--color--accent-1);
	width: 0;
	animation:
		jeelani-typing 1.8s steps(20, end) 0.5s forwards,
		jeelani-blink 0.7s step-end infinite;
}

@keyframes jeelani-typing {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes jeelani-blink {
	50% { border-color: transparent; }
}

/* Stop blinking cursor after typing finishes */
.jeelani-hero-text h2.typing-done {
	border-color: transparent;
	animation: jeelani-typing 1.8s steps(20, end) 0.5s forwards;
}

/* ------------------------------------------------
   404 page: SIGNAL LOST
   ------------------------------------------------ */
.jeelani-404 {
	text-align: center;
}

.jeelani-404-code {
	font-family: var(--wp--preset--font-family--rajdhani) !important;
	font-size: clamp(5rem, 15vw, 10rem) !important;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1) !important;
	text-shadow: 0 0 30px rgba(57, 255, 20, 0.3), 0 0 60px rgba(57, 255, 20, 0.1);
	line-height: 1;
	margin-bottom: 0;
	animation: jeelani-flicker 4s ease-in-out infinite;
}

@keyframes jeelani-flicker {
	0%, 100% { opacity: 1; }
	92% { opacity: 1; }
	93% { opacity: 0.4; }
	94% { opacity: 1; }
	96% { opacity: 0.6; }
	97% { opacity: 1; }
}

.jeelani-404-signal {
	font-family: var(--wp--preset--font-family--rajdhani) !important;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--accent-1) !important;
	margin-top: 0.5em;
	font-weight: 700;
}

.jeelani-404-subtitle {
	color: var(--wp--preset--color--accent-4) !important;
	letter-spacing: 0.1em;
	margin-top: 0.5em;
}

.jeelani-404-help {
	color: var(--wp--preset--color--accent-4) !important;
}

.jeelani-404-help a {
	color: var(--wp--preset--color--accent-1) !important;
	text-decoration: underline;
}

.jeelani-404-help a:hover {
	text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* ------------------------------------------------
   Background grid (subtle tactical HUD)
   ------------------------------------------------ */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background-image:
		linear-gradient(rgba(57, 255, 20, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(57, 255, 20, 0.015) 1px, transparent 1px);
	background-size: 40px 40px;
}
