@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
	/* Colors inspired by Tron Legacy and Arwes */

	/* BACKGROUND */
	--primary-bg: #0a0a0f;
	--secondary-bg: #0f0f1a;
	--surface-bg: #141428;
	--card-bg: #1a1a2e;
	--dark-bg: #0d0d18;
	--hologram-bg: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
	--dark-glass: rgba(5, 15, 25, 0.85);

	/* TEXT */
	--text-primary: #e6f3ff;
	--text-secondary: #9bb3d1;
	--text-muted: #6b7d99;
	--text-dark: #0a0a0f;

	/* ACCENTS */
	--accent-cyan: #00d4ff;
	--accent-orange: #ff6b35;
	--accent-blue: #0f4c75;
	--accent-purple: #7c3aed;
	--accent-green: #248232;
	--accent-red: #880D1E;
	--accent-white: #FBF5F3;
	--ultra-dark: rgba(0, 5, 15, 0.95);

	--cyan-glow: #00fff7;
	--purple-glow: #b300ff;

	--text-glow: rgba(0, 255, 255, 0.8);
	--font-main: 'Orbitron', sans-serif;

	--neon-blue: #00d4ff;
	--neon-purple: #a855f7;
	--neon-cyan: #06b6d4;

	--cinematic-gray: #141428;
	--cinematic-white: #ffffff;
	--cinematic-orange: #ff6b35;
	--cinematic-purple: #7c3aed;

	/* borders */
	--border-color: rgba(0, 212, 255, 0.3);
	/* Fallback */
	--border-color-cyan: rgba(0, 212, 255, 0.3);
	--border-color-orange: rgba(255, 107, 53, 0.3);
	--border-color-blue: rgba(15, 76, 117, 0.3);
	--border-color-purple: rgba(124, 58, 237, 0.3);
	--border-color-green: rgba(36, 130, 50, 0.3);
	--border-active: rgba(0, 212, 255, 0.8);
	--neon-border: rgba(0, 255, 255, 0.6);
	--cyber-border: rgba(0, 212, 255, 0.3);

	/* BOX SHADOWS GLOW */
	--glow-cyan: rgba(0, 212, 255, 0.4);
	--glow-orange: rgba(255, 107, 53, 0.4);
	--glow-blue: rgba(15, 76, 117, 0.4);
	--glow-purple: rgba(124, 58, 237, 0.4);
	--glow-green: rgba(36, 130, 50, 0.4);

	--corner-size: 12px;
	--frame-width: 2px;

	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Orbitron', 'Inter', sans-serif;

	--navbar-height: 87px;
	--transition: all 0.3s ease;

	--card-radius: 12px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background: var(--primary-bg);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}

img {
	image-orientation: none !important;
}

.hidden {
	display: none;
}

/* Background Effects */
.grid-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	z-index: -2;
	animation: grid-pulse 4s ease-in-out infinite alternate;
}

.scanning-lines {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg,
			transparent 98%,
			rgba(0, 212, 255, 0.03) 99%,
			transparent 100%);
	background-size: 100% 4px;
	animation: scan 8s linear infinite;
	z-index: -1;
	pointer-events: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
}

/* Sci-Fi Frame Components */
.sci-fi-frame {
	position: relative;
	border: var(--frame-width) solid var(--border-color);
	background: var(--card-bg);
	transition: all 0.3s ease;
}

.sci-fi-frame:hover {
	border-color: var(--border-active);
	box-shadow:
		0 0 20px var(--glow-cyan),
		inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.card-corners {
	position: absolute;
	inset: -2px;
	pointer-events: none;
}

.corner {
	position: absolute;
	width: var(--corner-size);
	height: var(--corner-size);
	border: 2px solid var(--accent-cyan);
}

.corner.top-left {
	top: 0;
	left: 0;
	border-right: none;
	border-bottom: none;
}

.corner.top-right {
	top: 0;
	right: 0;
	border-left: none;
	border-bottom: none;
}

.corner.bottom-left {
	bottom: 0;
	left: 0;
	border-right: none;
	border-top: none;
}

.corner.bottom-right {
	bottom: 0;
	right: 0;
	border-left: none;
	border-top: none;
}

.sci-fi-button {
	position: relative;
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	overflow: hidden;
}

.sci-fi-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
	transition: left 0.5s ease;
}

.sci-fi-button:hover {
	border-color: var(--accent-cyan);
	color: var(--accent-cyan);
	text-shadow: 0 0 10px var(--accent-cyan);
	box-shadow: 0 0 30px var(--glow-cyan), 0 0 50px var(--glow-cyan);
}

.sci-fi-button:hover::before {
	left: 100%;
}


/* Header */
.main-header {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(10, 10, 15, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 1000;
	padding: 16px 0;
}

.main-header.minimized {
	top: -90px;
	transition: var(--transition);
}

.main-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.main-header .logo-frame {
	position: relative;
	padding: 12px 24px;
	border: 1px solid var(--border-color);
	background: var(--surface-bg);
}

.main-header .logo-frame a {
	text-decoration: none;
}

.main-header .logo-text {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 900;
	color: var(--text-primary);
	margin-right: 8px;
}

.main-header .logo-accent {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--accent-cyan);
	text-shadow: 0 0 10px var(--accent-cyan);
}

.main-header .logo-text a {
	text-decoration: none;
	color: var(--text-primary);
}

.main-header .logo-accent a {
	text-decoration: none;
	color: var(--accent-cyan);
}

.main-header .logo-corners {
	position: absolute;
	inset: -1px;
	pointer-events: none;
}

.main-header .header-nav ul {
	display: flex;
	list-style: none;
	gap: 0;
}

.explore-link-div {
	margin: 82px auto 0 auto;
	text-align: center;
}

/* Secondary nav layout */
.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--z-nav);
	background: rgba(10, 10, 15, 0.9);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: all var(--duration-medium) var(--easing-smooth);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	max-width: var(--wide-content-width);
	margin: 0 auto;
}

.logo-section {
	display: flex;
	align-items: center;
}

.logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Orbitron', monospace;
}

.logo-primary {
	font-weight: 900;
	font-size: 1.2rem;
	color: var(--cinematic-white);
}

.logo-secondary {
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--accent-cyan);
}

.nav-menu {
	display: flex;
	gap: 2rem;
}

.nav-link {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: color var(--duration-fast) var(--easing-smooth);
}

.nav-link:hover {
	color: var(--accent-cyan);
}

.breadcrumb-nav .nav-link {
	color: var(--accent-cyan);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.breadcrumb-nav .nav-link:hover {
	text-shadow: 0 0 10px var(--accent-cyan);
}

.explore-link {
	color: var(--accent-cyan);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 16px 32px;
	border: 1px solid var(--border-color);
	background: transparent;
}

.explore-link:hover {
	text-shadow: 0 0 10px var(--accent-cyan);
}


.nav-frame {
	display: block;
	padding: 12px 20px;
	border: 1px solid var(--border-color);
	border-left: none;
	background: var(--surface-bg);
	color: var(--text-secondary);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.nav-frame:first-child {
	border-left: 1px solid var(--border-color);
}

.nav-frame:hover {
	background: var(--card-bg);
	color: var(--accent-cyan);
	border-color: var(--accent-cyan);
	text-shadow: 0 0 10px var(--accent-cyan);
	box-shadow: 0 0 15px var(--glow-cyan);
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 0 80px;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background:
		radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%); */
}

.hero .container {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 80px;
	align-items: center;
}

/* Terminal */
.hero-terminal {
	margin-bottom: 40px;
	border: 1px solid var(--border-color);
	background: var(--card-bg);
	border-radius: 4px;
}

.terminal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: var(--surface-bg);
	border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
	display: flex;
	gap: 8px;
}

.control-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--text-muted);
}

.control-dot.active {
	background: var(--accent-cyan);
	box-shadow: 0 0 10px var(--glow-cyan);
}

.terminal-title {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.terminal-content {
	padding: 16px;
	font-family: var(--font-display);
	font-size: 14px;
}

.status-line {
	margin-bottom: 8px;
	display: flex;
	gap: 12px;
}

.prompt {
	color: var(--accent-cyan);
}

.status-active {
	color: #00ff88;
	text-shadow: 0 0 8px #00ff88;
}

.typing-text {
	overflow: hidden;
	border-right: 2px solid var(--accent-cyan);
	animation: typing 3s steps(30) 1s forwards, blink 1s step-end infinite;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(48px, 6vw, 72px);
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 32px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.hero-title .line {
	display: block;
	margin-bottom: 8px;
}

.highlight {
	color: var(--accent-cyan);
	text-shadow: 0 0 20px var(--glow-cyan);
}

.hero-description {
	font-size: 16px;
	color: var(--text-secondary);
	margin-bottom: 40px;
	line-height: 1.7;
	max-width: 500px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.cta-primary .button-frame {
	position: relative;
	padding: 16px 32px;
	background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
	border: 1px solid var(--accent-cyan);
}

.cta-primary .button-frame span,
.cta-primary .button-frame span a {
	position: relative;
	z-index: 1;
	color: white;
	font-weight: 700;
	text-decoration: none;
}

.button-glow {
	position: absolute;
	inset: 0;
	background: var(--accent-cyan);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cta-primary:hover .button-glow {
	opacity: 0.2;
}

.cta-secondary .button-frame {
	padding: 16px 32px;
	border: 1px solid var(--border-color);
	background: transparent;
}

.cta-secondary .button-frame span,
.cta-secondary .button-frame span a {
	color: var(--text-primary);
	font-weight: 500;
	text-decoration: none;
}

/* HUD Panel */
.hud-container {
	display: flex;
	justify-content: center;
}

.hud-panel {
	border: 1px solid var(--border-color);
	background: var(--card-bg);
	padding: 24px;
	position: relative;
}

.hud-panel::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
	z-index: -1;
	border-radius: inherit;
}

.panel-header {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	color: var(--accent-cyan);
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
	display: grid;
	gap: 20px;
}

.metric-box {
	text-align: center;
	padding: 16px;
	border: 1px solid var(--border-color);
	background: var(--surface-bg);
}

.metric-value {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 900;
	color: var(--accent-cyan);
	text-shadow: 0 0 15px var(--glow-cyan);
	margin-bottom: 8px;
	letter-spacing: 2px;
}

.metric-label {
	font-family: var(--font-display);
	font-size: 10px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
}

.metric-bar {
	height: 4px;
	background: var(--surface-bg);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
	width: var(--fill);
	box-shadow: 0 0 10px var(--glow-cyan);
	animation: bar-glow 2s ease-in-out infinite alternate;
}

/* Footer */
.main-footer {
	padding: 60px 0 40px;
	border-top: 1px solid var(--border-color);
}

.footer-frame {
	border: 1px solid var(--border-color);
	background: var(--surface-bg);
	padding: 40px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-info p {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-links {
	display: flex;
	gap: 0;
}

.footer-links .sci-fi-button {
	padding: 8px 16px;
	border-left: none;
	font-size: 10px;
}

.footer-links .sci-fi-button:first-child {
	border-left: 1px solid var(--border-color);
}

/* Sections */
.section {
	padding: 100px 0;
	border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
	border-bottom: none;
}

.section-frame {
	position: relative;
	padding: 40px;
	border: 1px solid var(--border-color);
	background: var(--surface-bg);
	margin-bottom: 80px;
}

.section-title-container {
	text-align: center;
}

.section-badge {
	display: inline-block;
	padding: 8px 24px;
	background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
	color: white;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 24px;
	clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.section-header h2 {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 900;
	margin-bottom: 16px;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 2px;
}

.section-description {
	font-size: 16px;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Stories Grid */
.stories-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr;
	gap: 16px;
	align-items: stretch;
}

.story-card {
	overflow: hidden;
	height: 450px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
}

.story-card.primary {
	grid-row: span 2;
	height: 600px;
}

.story-media {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
}

.story-card.primary .story-media {
	aspect-ratio: 16/12;
}

.story-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.story-card:hover .story-media img {
	transform: scale(1.05);
}

.story-overlay {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 16px;
}

.overlay-frame {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.category,
.reading-time {
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.8);
	border: 1px solid var(--accent-cyan);
	color: var(--accent-cyan);
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	backdrop-filter: blur(10px);
}

.story-content {
	padding: 16px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-top: none;
}

.story-content h3 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 900;
	margin-bottom: 16px;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.story-content h4 {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.story-content p {
	font-size: 16px;
	color: var(--text-secondary);
	margin-bottom: 24px;
	line-height: 1.6;
}

.story-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
}

.publish-date {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.read-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-cyan);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.read-link:hover {
	text-shadow: 0 0 10px var(--accent-cyan);
}

.link-arrow {
	font-size: 16px;
	transition: transform 0.3s ease;
}

.read-link:hover .link-arrow {
	transform: translateX(4px);
}

/* Filter Tabs */
.filter-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: 32px;
}

.filter-tab {
	padding: 12px 24px;
	border: 1px solid var(--border-color);
	border-left: none;
	background: var(--surface-bg);
	font-size: 12px;
	font-weight: 700;
}

.filter-tab:first-child {
	border-left: 1px solid var(--border-color);
}

.filter-tab.active {
	background: var(--accent-cyan);
	color: white;
	border-color: var(--accent-cyan);
}

/* Visual Grid */
.visual-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.visual-item {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
}

.visual-item:hover {
	transform: translateY(-4px);
}

.visual-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.visual-item:hover img {
	transform: scale(1.05);
}

.visual-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.visual-item:hover .visual-info {
	transform: translateY(0);
}

.info-frame {
	padding: 20px;
	background: rgba(0, 0, 0, 0.9);
	border: 1px solid var(--accent-cyan);
	border-bottom: none;
	backdrop-filter: blur(10px);
}

.visual-info h5 {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.location {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Insights Section */
.insights-list {
	display: grid;
	gap: 32px;
	max-width: 900px;
	margin: 0 auto;
}

.insight-item {
	overflow: hidden;
	transition: all 0.3s ease;
}

.insight-content {
	padding: 32px;
}

.insight-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-color);
}

.insight-type {
	padding: 6px 16px;
	background: var(--accent-orange);
	color: white;
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.insight-date {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.insight-item h4 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.insight-item h4 a {
	color: var(--text-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.insight-item h4 a:hover {
	color: var(--accent-cyan);
	text-shadow: 0 0 10px var(--glow-cyan);
}

.insight-item p {
	font-size: 16px;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 24px;
}

.insight-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
}

/* Lab Projects */
.lab-projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 32px;
}

.lab-project {
	overflow: hidden;
	transition: all 0.3s ease;
}

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px 16px;
	border-bottom: 1px solid var(--border-color);
	background: var(--surface-bg);
}

.project-status {
	display: flex;
	align-items: center;
	gap: 8px;
}

.status-indicator.planning {
	background: var(--accent-orange);
	animation: none;
}

.status-indicator.research {
	background: var(--accent-purple);
	animation: pulse 3s ease-in-out infinite;
}

.project-progress {
	display: flex;
	align-items: center;
	gap: 12px;
}

.progress-bar {
	width: 80px;
	height: 4px;
	background: var(--surface-bg);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
	width: var(--progress);
	transition: width 0.3s ease;
	box-shadow: 0 0 8px var(--glow-cyan);
}

.progress-text {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--accent-cyan);
	font-weight: 700;
}

.project-content {
	padding: 24px 32px;
}

.lab-project h4 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 900;
	margin-bottom: 16px;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.lab-project p {
	font-size: 16px;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 20px;
}

.project-tech {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.tech-tag {
	padding: 4px 12px;
	background: var(--accent-purple);
	color: white;
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.project-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 32px 24px;
	border-top: 1px solid var(--border-color);
}

.project-timeline {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.timeline-label {
	font-family: var(--font-display);
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.timeline-value {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--accent-cyan);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.project-link {
	padding: 8px 16px;
	font-size: 12px;
}

/* Contact Section */
.contact-grid {
	/* display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px; */
	max-width: 1000px;
	margin: 0 auto;
}

.contact-content {
	padding: 32px;
}

.contact-section {
	margin-bottom: 32px;
}

.contact-section:last-child {
	margin-bottom: 0;
}

.contact-heading {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color);
}

.contact-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding: 8px 0;
}

.contact-label {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.contact-link {
	color: var(--accent-cyan);
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: var(--font-display);
	font-size: 14px;
}

.contact-link:hover {
	color: var(--accent-orange);
	text-shadow: 0 0 8px var(--glow-orange);
}

.contact-value {
	font-family: var(--font-display);
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
}

.social-link {
	padding: 12px 16px;
	text-align: center;
	font-size: 12px;
}

/* Responsive adjustments for new sections */

/* footer--------------------------------- */
@media (max-width: 575px) {
	.main-footer {
		padding: 40px 0 32px;
	}

	.container {
		padding: 0 16px;
	}

	.footer-frame {
		padding: 24px 20px;
	}

	.footer-info p {
		font-size: 10px;
	}

	.footer-links .sci-fi-button {
		padding: 6px 10px;
		font-size: 9px;
	}
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.lab-projects {
		grid-template-columns: 1fr;
	}

	.social-grid {
		grid-template-columns: 1fr;
	}

	.project-header,
	.project-content,
	.project-footer,
	.contact-content,
	.form-header,
	.quick-contact {
		padding: 20px;
	}

	.insight-content {
		padding: 24px;
	}

	.project-footer {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}
}



/* Theme transition styles */
.theme-transitioning,
.theme-transitioning * {
	transition:
		background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Preserve critical animations */
.theme-transitioning .typing-text,
.theme-transitioning .bar-fill,
.theme-transitioning .progress-fill,
.theme-transitioning .sci-fi-button::before {
	transition: none !important;
}

/* Responsive Design */

/* High DPI / Retina screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

	.hero-title,
	.section-header h2,
	.story-content h3,
	.story-content h4,
	.lab-project h4 {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.sci-fi-frame,
	.story-card,
	.hud-panel {
		border-width: 1px;
	}

	.corner {
		border-width: 1px;
	}
}

@media (max-width: 1024px) {
	.hero .container {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.stories-grid {
		grid-template-columns: 1fr;
	}

	.hud-panel {
		padding: 16px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 100px 0 60px;
	}

	.hero-title {
		font-size: 36px;
	}

	.section {
		padding: 60px 0;
	}

	.section-frame {
		padding: 24px;
		margin-bottom: 40px;
	}

	.visual-grid {
		grid-template-columns: 1fr;
	}

	.filter-tabs {
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 24px;
	}

	.filter-tab {
		border-left: 1px solid var(--border-color) !important;
	}

	.footer-content {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	.footer-links .sci-fi-button:first-child {
		border-left: none;
	}
}

@media (max-width: 575px) {
	.logo-frame {
		padding: 6px 12px;
	}

	.logo-text,
	.logo-accent {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-terminal {
		margin-bottom: 24px;
	}

	.terminal-content {
		padding: 12px;
		font-size: 12px;
	}

	.metrics-grid {
		gap: 12px;
	}

	.metric-value {
		font-size: 24px;
	}
}

@media (max-width: 550px) {
	.breadcrumb .nav-link {
		font-size: 11px;
	}
}

@media (max-width: 530px) {
	:root {
		--navbar-height: 76px;
	}

	/* logo */
	.main-header .logo-frame {
		padding: 6px 12px;
	}

	.main-header .logo-text {
		font-size: 14px;
		margin-right: 4px
	}

	.main-header .logo-accent {
		font-size: 15px;
	}
}

@media (max-width: 350px) {
	.main-header .logo-text {
		font-size: 13px;
		margin-right: 4px
	}

	.main-header .logo-accent {
		font-size: 14px;
	}
}

@media (max-width: 300px) {
	.main-header .logo-frame {
		padding: 4px 8px;
	}

	.main-header .logo-text {
		font-size: 12px;
		margin-right: 4px
	}

	.main-header .logo-accent {
		font-size: 13px;
	}
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

	.grid-background,
	.scanning-lines {
		animation: none !important;
	}

	.typing-text {
		animation: none !important;
		border-right: none;
	}

	.story-card:hover .story-media img,
	.visual-item:hover img,
	.visual-item:hover {
		transform: none !important;
	}

	.sci-fi-button::before {
		transition: none !important;
	}

	.bar-fill,
	.progress-fill {
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------- */
/*                                KEYFRAMES                                   */
/* -------------------------------------------------------------------------- */

@keyframes scan {
	0% {
		transform: translateY(-100%);
	}

	100% {
		transform: translateY(100vh);
	}
}

@keyframes grid-pulse {
	0% {
		opacity: 0.3;
	}

	100% {
		opacity: 0.1;
	}
}

@keyframes typing {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

@keyframes blink {

	0%,
	50% {
		border-color: var(--accent-cyan);
	}

	51%,
	100% {
		border-color: transparent;
	}
}

@keyframes bar-glow {
	0% {
		opacity: 0.8;
	}

	100% {
		opacity: 1;
	}
}

/* -------------------------------------------------------------------------- */
/*                                 FADE-IN                                    */
/* -------------------------------------------------------------------------- */

/* ------------------------------ FADE-IN-FWD ------------------------------ */
.fade-in-fwd {
	-webkit-animation: fade-in-fwd 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	animation: fade-in-fwd 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-fwd {
	0% {
		-webkit-transform: translateZ(-80px);
		transform: translateZ(-80px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		opacity: 1;
	}
}

@keyframes fade-in-fwd {
	0% {
		-webkit-transform: translateZ(-80px);
		transform: translateZ(-80px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		opacity: 1;
	}
}

/* ------------------------------ FADE-IN-LEFT ------------------------------ */
.fade-in-left {
	-webkit-animation: fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	animation: fade-in-left 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-left {
	0% {
		-webkit-transform: translateX(-50px);
		transform: translateX(-50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fade-in-left {
	0% {
		-webkit-transform: translateX(-50px);
		transform: translateX(-50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		opacity: 1;
	}
}

/* ------------------------------ FADE-IN-RIGHT ------------------------------ */
.fade-in-right {
	-webkit-animation: fade-in-right 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	animation: fade-in-right 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in-right {
	0% {
		-webkit-transform: translateX(50px);
		transform: translateX(50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fade-in-right {
	0% {
		-webkit-transform: translateX(50px);
		transform: translateX(50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		opacity: 1;
	}
}