/* ===== CYBERPUNK THEME OVERHAUL ===== */

/* Import cyberpunk fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Share+Tech+Mono&display=swap');

/* CSS Variables for cyberpunk color scheme */
:root {
	--neon-green: #00ff99;
	--neon-blue: #00ffff;
	--neon-purple: #ff00ff;
	--neon-pink: #ff0080;
	--dark-bg: #0a0a0a;
	--darker-bg: #050505;
	--card-bg: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #cccccc;
	--glow-green: 0 0 20px rgba(0, 255, 153, 0.5);
	--glow-blue: 0 0 20px rgba(0, 255, 255, 0.5);
	--glow-purple: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* Global cyberpunk styling */
body {
	background: var(--dark-bg);
	color: var(--text-primary);
	line-height: 1.7;
	font-size: 16px;
	font-weight: 300;
	font-family: 'Share Tech Mono', monospace;
	overflow-x: hidden;
}

/* Code Rain Background */
#code-rain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
	opacity: 0.1;
	pointer-events: none;
}

/* Particles background adjustment */
#particles-js {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
	pointer-events: none;
}

/* Cyberpunk gradient backgrounds */
.p1-gradient-bg, .thumb .overlay-bg {
	background: linear-gradient(45deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
	background-size: 200% 200%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.p1-gradient-color {
	background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Selection styling */
::-moz-selection, ::selection {
	background: var(--neon-green);
	color: var(--dark-bg);
}

/* Typography with cyberpunk fonts */
h1, h2, h3, h4, h5 {
	color: var(--text-primary);
	font-weight: 200;
	font-family: 'Orbitron', sans-serif;
	text-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

h2 {
	font-size: 25px;
}

/* Glitch effect for headings */
.glitch {
	position: relative;
	animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.glitch::before {
	animation: glitch-1 0.5s infinite;
	color: var(--neon-pink);
	z-index: -1;
}

.glitch::after {
	animation: glitch-2 0.5s infinite;
	color: var(--neon-blue);
	z-index: -2;
}

@keyframes glitch {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(-2px, 2px); }
	40% { transform: translate(-2px, -2px); }
	60% { transform: translate(2px, 2px); }
	80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(-2px, 2px); }
	40% { transform: translate(-2px, -2px); }
	60% { transform: translate(2px, 2px); }
	80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(2px, -2px); }
	40% { transform: translate(2px, 2px); }
	60% { transform: translate(-2px, -2px); }
	80% { transform: translate(-2px, 2px); }
}

/* Links with neon glow */
a {
	transition: all 0.3s ease;
	color: var(--neon-green);
	text-decoration: none;
	position: relative;
}

a:hover, a:focus, a:active {
	color: var(--neon-blue);
	text-shadow: var(--glow-blue);
	transform: scale(1.05);
}

/* Navigation cyberpunk styling */
.site-navbar {
	border: none;
	box-shadow: none;
	border-radius: 0px;
	margin-bottom: 0px;
	background: linear-gradient(135deg, 
		rgba(0, 0, 0, 0.3) 0%, 
		rgba(0, 20, 10, 0.2) 25%, 
		rgba(0, 10, 20, 0.15) 50%, 
		rgba(20, 0, 20, 0.2) 75%, 
		rgba(0, 0, 0, 0.3) 100%);
	backdrop-filter: blur(10px);
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 200;
	border-bottom: 1px solid rgba(0, 255, 153, 0.2);
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 255, 153, 0.1);
}

.site-navbar .navbar-nav > li > a {
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.5px;
	position: relative;
	text-transform: uppercase;
	font-family: 'Orbitron', sans-serif;
	transition: all 0.3s ease;
	padding: 20px 15px !important;
	text-shadow: 0 0 10px rgba(0, 255, 153, 0.8);
	border-radius: 5px;
	margin: 0 3px;
}

.site-navbar .navbar-nav > li > a:hover {
	color: var(--neon-green) !important;
	text-shadow: 0 0 15px var(--neon-green);
	background: rgba(0, 255, 153, 0.1);
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

.site-navbar .navbar-nav > li > a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent, rgba(0, 255, 153, 0.05), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 5px;
}

.site-navbar .navbar-nav > li > a:hover::before {
	opacity: 1;
}

.site-navbar.scrolled {
	background: linear-gradient(135deg, 
		rgba(0, 0, 0, 0.8) 0%, 
		rgba(0, 20, 10, 0.7) 25%, 
		rgba(0, 10, 20, 0.6) 50%, 
		rgba(20, 0, 20, 0.7) 75%, 
		rgba(0, 0, 0, 0.8) 100%);
	backdrop-filter: blur(15px);
	box-shadow: 0 4px 20px rgba(0, 255, 153, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	transform: translateY(0%);
	border-bottom: 1px solid rgba(0, 255, 153, 0.4);
}

/* Navbar toggle button - general styling */
.navbar-toggler {
	border: 2px solid var(--neon-green);
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	border-radius: 5px;
	padding: 8px 12px;
	box-shadow: 0 0 15px rgba(0, 255, 153, 0.5);
}

.navbar-toggler:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 255, 153, 0.5);
	outline: none;
}

.navbar-toggler:hover {
	background: rgba(0, 255, 153, 0.1);
	border-color: var(--neon-blue);
	box-shadow: 0 0 20px rgba(0, 255, 153, 0.7);
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ff99' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	width: 1.5em;
	height: 1.5em;
}

/* Mobile navbar styling */
@media (max-width: 991.98px) {
	.site-navbar {
		background: linear-gradient(135deg, 
			rgba(0, 0, 0, 0.95) 0%, 
			rgba(0, 20, 10, 0.9) 25%, 
			rgba(0, 10, 20, 0.8) 50%, 
			rgba(20, 0, 20, 0.9) 75%, 
			rgba(0, 0, 0, 0.95) 100%) !important;
		top: 0;
	}
	
	.site-navbar .navbar-nav > li > a {
		color: #ffffff !important;
		padding: 15px 20px !important;
		border-bottom: 1px solid rgba(0, 255, 153, 0.2);
		margin: 0;
		border-radius: 0;
	}
	
	.site-navbar .navbar-nav > li > a:hover {
		background: rgba(0, 255, 153, 0.1);
		color: var(--neon-green) !important;
		text-shadow: 0 0 15px var(--neon-green);
	}
	
	/* Navbar toggle button styling */
	.navbar-toggler {
		border: 2px solid var(--neon-green);
		background: rgba(0, 0, 0, 0.9);
		backdrop-filter: blur(10px);
		border-radius: 5px;
		padding: 8px 12px;
		box-shadow: 0 0 15px rgba(0, 255, 153, 0.5);
	}
	
	.navbar-toggler:focus {
		box-shadow: 0 0 0 0.2rem rgba(0, 255, 153, 0.5);
		outline: none;
	}
	
	.navbar-toggler:hover {
		background: rgba(0, 255, 153, 0.1);
		border-color: var(--neon-blue);
		box-shadow: 0 0 20px rgba(0, 255, 153, 0.7);
	}
	
	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ff99' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
		width: 1.5em;
		height: 1.5em;
	}
}

/* Hero section cyberpunk styling */
.site-hero {
	background: linear-gradient(135deg, 
		rgba(0, 0, 0, 0.95) 0%, 
		rgba(0, 20, 10, 0.9) 20%, 
		rgba(0, 10, 20, 0.8) 40%, 
		rgba(20, 0, 20, 0.9) 60%, 
		rgba(10, 20, 0, 0.8) 80%, 
		rgba(0, 0, 0, 0.95) 100%);
	background-size: 400% 400%;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	height: 100vh;
	min-height: 800px;
	animation: gradientMove 15s ease infinite;
	padding-top: 80px;
}

.site-hero::before {
	content: "";
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 30% 30%, rgba(0, 255, 153, 0.2) 0%, transparent 40%),
		radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 50% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
		radial-gradient(circle at 20% 80%, rgba(0, 255, 153, 0.1) 0%, transparent 40%),
		radial-gradient(circle at 80% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 40%);
	animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes gradientMove {
	0% { background-position: 0% 50%; }
	25% { background-position: 100% 50%; }
	50% { background-position: 100% 100%; }
	75% { background-position: 0% 100%; }
	100% { background-position: 0% 50%; }
}

@keyframes heroGlow {
	0% { 
		opacity: 0.4;
		transform: scale(1);
	}
	100% { 
		opacity: 0.8;
		transform: scale(1.02);
	}
}

.site-hero h1 {
	font-weight: 200;
	margin-bottom: 20px;
	display: block;
	font-size: 4rem;
	text-shadow: 
		0 0 30px rgba(0, 255, 153, 0.8),
		0 0 60px rgba(0, 255, 153, 0.4);
	color: #ffffff;
	margin-top: 60px;
}

.site-hero h1 strong {
	font-weight: 800;
	color: var(--neon-green);
	text-shadow: 
		0 0 30px var(--neon-green),
		0 0 60px var(--neon-green),
		0 0 90px var(--neon-green);
}

.site-hero h3 {
	font-size: 1.5rem;
	color: var(--neon-blue);
	text-shadow: 
		0 0 20px rgba(0, 255, 255, 0.8),
		0 0 40px rgba(0, 255, 255, 0.4);
	font-weight: 300;
}

/* Section styling */
.site-section {
	padding: 5em 0;
	position: relative;
}

.site-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
	animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.section-heading {
	margin-bottom: 30px;
	position: relative;
	z-index: 10;
}

.section-heading h2 {
	position: relative;
	font-weight: 200;
	padding-top: 20px;
	font-size: 30px;
	color: var(--neon-green);
	text-shadow: var(--glow-green);
}

.section-heading h2 strong {
	font-weight: 800;
	color: var(--neon-blue);
	text-shadow: var(--glow-blue);
}

/* Service items with holographic effect */
.site-service-item {
	background: var(--card-bg);
	padding: 30px;
	border: 1px solid rgba(0, 255, 153, 0.3);
	border-radius: 10px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.site-service-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.1), transparent);
	transition: left 0.5s ease;
}

.site-service-item:hover::before {
	left: 100%;
}

.site-service-item:hover {
	transform: translateY(-10px) rotateX(5deg);
	box-shadow: 0 20px 40px rgba(0, 255, 153, 0.3);
	border-color: var(--neon-green);
}

.site-service-item .icon {
	display: block;
	margin-bottom: 50px;
	background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
	width: 100px;
	height: 100px;
	position: relative;
	border-radius: 50%;
	margin: 0 auto 30px auto;
	box-shadow: var(--glow-green);
	animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.site-service-item .icon span {
	font-size: 40px;
	color: var(--dark-bg);
	position: absolute;
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%;
}

.site-service-item h3 {
	font-size: 20px;
	font-weight: 200;
	color: var(--neon-green);
	text-shadow: var(--glow-green);
}

/* Portfolio filters cyberpunk styling */
.filters {
	text-align: center;
	margin-bottom: 40px;
}

.filters ul {
	padding: 0;
	margin: 0 0 30px 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

.filters ul li {
	display: inline-block;
	cursor: pointer;
	padding: 15px 25px;
	transition: all 0.3s ease;
	background: var(--card-bg);
	border: 1px solid rgba(0, 255, 153, 0.3);
	border-radius: 25px;
	font-family: 'Orbitron', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	overflow: hidden;
}

.filters ul li::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.2), transparent);
	transition: left 0.3s ease;
}

.filters ul li:hover::before {
	left: 100%;
}

.filters ul li:hover {
	color: var(--neon-green);
	text-shadow: var(--glow-green);
	border-color: var(--neon-green);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 255, 153, 0.3);
}

.filters ul li.active {
	color: var(--neon-green);
	background: rgba(0, 255, 153, 0.1);
	border-color: var(--neon-green);
	box-shadow: var(--glow-green);
}

/* Portfolio items with 3D tilt effect */
.single-portfolio {
	margin-bottom: 50px;
	display: block;
	background: var(--card-bg);
	border-radius: 15px;
	color: var(--text-primary);
	text-align: left;
	max-width: 450px;
	min-height: 25px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 15px;
	border: 1px solid rgba(0, 255, 153, 0.2);
	position: relative;
	overflow: hidden;
}

.single-portfolio::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent, rgba(0, 255, 153, 0.05), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.single-portfolio:hover::before {
	opacity: 1;
}

.single-portfolio:hover {
	transform: scale(1.05) rotateY(5deg);
	box-shadow: 0 20px 40px rgba(0, 255, 153, 0.3);
	border-color: var(--neon-green);
}

.single-portfolio .relative {
	margin-bottom: 20px;
}

.single-portfolio h4 {
	font-size: 18px;
	color: var(--neon-green);
	text-shadow: var(--glow-green);
	margin-bottom: 15px;
	font-family: 'Orbitron', sans-serif;
}

.single-portfolio .cat ul {
	list-style: none;
	padding: 0;
}

.single-portfolio .cat ul li {
	margin-bottom: 8px;
	padding-left: 20px;
	position: relative;
	color: var(--text-secondary);
}

.single-portfolio .cat ul li::before {
	content: '>';
	color: var(--neon-green);
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* Image hover effects */
.thumb {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

.thumb .overlay-bg {
	opacity: 0;
	border-radius: 10px;
	transition: all 0.3s ease-in-out;
	background: linear-gradient(45deg, rgba(0, 255, 153, 0.8), rgba(0, 255, 255, 0.8));
}

.single-portfolio:hover .thumb .overlay-bg {
	opacity: 0.9;
}

.middle {
	transition: 0.3s ease;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.single-portfolio:hover .middle {
	opacity: 1;
}

/* Threat Console Styling */
#threat-console {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 400px;
	height: 300px;
	background: rgba(10, 10, 10, 0.95);
	border: 2px solid var(--neon-green);
	border-radius: 10px;
	z-index: 1000;
	backdrop-filter: blur(10px);
	box-shadow: var(--glow-green);
	display: none;
	overflow: hidden;
}

.console-header {
	background: var(--neon-green);
	color: var(--dark-bg);
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Orbitron', sans-serif;
	font-weight: bold;
}

#console-close {
	background: none;
	border: none;
	color: var(--dark-bg);
	font-size: 20px;
	cursor: pointer;
	font-weight: bold;
}

#console-close:hover {
	color: var(--neon-pink);
}

#console-log {
	height: calc(100% - 50px);
	padding: 15px;
	color: var(--neon-green);
	font-family: 'Share Tech Mono', monospace;
	font-size: 12px;
	overflow-y: auto;
	background: var(--darker-bg);
	margin: 0;
}

#console-log::-webkit-scrollbar {
	width: 8px;
}

#console-log::-webkit-scrollbar-track {
	background: var(--card-bg);
}

#console-log::-webkit-scrollbar-thumb {
	background: var(--neon-green);
	border-radius: 4px;
}

/* Button styling */
.btn {
	border-radius: 100px;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .2rem;
	font-family: 'Orbitron', sans-serif;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.3s ease;
}

.btn:hover::before {
	left: 100%;
}

.btn:active, .btn:focus {
	outline: none;
	box-shadow: none !important;
}

.btn.btn-primary {
	color: var(--dark-bg);
	background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
	border: none;
	box-shadow: var(--glow-green);
}

.btn.btn-primary:hover {
	background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 255, 153, 0.4);
}

/* Social items */
.site-footer .social-item {
	display: inline-block;
	width: 60px;
	height: 60px;
	background: var(--card-bg);
	position: relative;
	border-radius: 50%;
	font-size: 22px;
	margin: 0 10px;
	border: 2px solid rgba(0, 255, 153, 0.3);
	transition: all 0.3s ease;
	overflow: hidden;
}

.site-footer .social-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.2), transparent);
	transition: left 0.3s ease;
}

.site-footer .social-item:hover::before {
	left: 100%;
}

.site-footer .social-item:hover {
	border-color: var(--neon-green);
	transform: translateY(-5px) scale(1.1);
	box-shadow: var(--glow-green);
}

.site-footer .social-item > span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--neon-green);
}

/* Responsive design */
@media (max-width: 768px) {
	.site-hero h1 {
		font-size: 2.5rem;
	}
	
	.site-hero h3 {
		font-size: 1.2rem;
	}
	
	.filters ul {
		flex-direction: column;
		align-items: center;
	}
	
	.filters ul li {
		width: 200px;
	}
	
	#threat-console {
		width: 90%;
		right: 5%;
		left: 5%;
	}
}

/* Animation for typing effect */
.typing-cursor {
	animation: blink 1s infinite;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/* Binary overlay effect */
.binary-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(0, 255, 153, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

/* Loading animation */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--dark-bg);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.loading-screen::after {
	content: '';
	width: 50px;
	height: 50px;
	border: 3px solid var(--neon-green);
	border-top: 3px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
