/*
Theme Name: Trushar Portfolio
Description: A modern, dynamic portfolio theme for frontend developers. Features dark/light mode, smooth animations, and customizable content through WordPress admin.
Author: Trushar Gavit
Version: 1.4.8
License: GPL v2 or later
Text Domain: trushar-portfolio
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600;700&display=swap');
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-bg: #0a0a0f;
	--secondary-bg: #1a1a2e;
	--accent-color: #4f46e5;
	--text-primary: #ffffff;
	--text-secondary: #a1a1aa;
	--text-muted: #71717a;
	--border-color: #27272a;
	--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--gradient-4: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
	--shadow-lg: 0 0px 10px 0px rgb(255 255 255 / 10%),
		0 10px 10px -5px rgb(255 255 255 / 4%);
}

/* Light theme variables */
[data-theme='light'] {
	--primary-bg: #ffffff;
	--secondary-bg: #f8fafc;
	--accent-color: #4f46e5;
	--text-primary: #1a1a2e;
	--text-secondary: #64748b;
	--text-muted: #94a3b8;
	--border-color: #e2e8f0;
	--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--gradient-4: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
	--shadow-lg: 0 0px 10px 0px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme='light'] .background-animation::before {
	background: radial-gradient(
			circle at 20% 30%,
			rgba(79, 70, 229, 0.05) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 70%,
			rgba(236, 72, 153, 0.05) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 90%,
			rgba(34, 197, 94, 0.05) 0%,
			transparent 50%
		);
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: var(--primary-bg);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Prevent scrolling when mobile menu is open */
body.mobile-menu-open {
	overflow: hidden;
}

.container {
	display: flex;
	min-height: 100vh;
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	box-shadow: var(--shadow-lg);
	border-radius: 0;
}

@media (min-width: 1200px) {
	.container {
		margin: 2rem auto;
		border-radius: 24px;
		overflow: hidden;
	}
}

/* Animated background */
.background-animation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: var(--primary-bg);
}

.background-animation::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
			circle at 20% 30%,
			rgba(79, 70, 229, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 70%,
			rgba(236, 72, 153, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 90%,
			rgba(34, 197, 94, 0.1) 0%,
			transparent 50%
		);
	animation: float 20s ease-in-out infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}
	33% {
		transform: translateY(-20px) rotate(1deg);
	}
	66% {
		transform: translateY(10px) rotate(-1deg);
	}
}

/* Sidebar */
.sidebar {
	width: 350px;
	background: var(--primary-bg);
	padding: 2rem;
	position: relative;
	border-right: 1px solid var(--border-color);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

/* Mobile Menu Toggle - hidden on desktop */
.mobile-menu-toggle {
	display: none;
}

.sidebar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
			circle at 20% 30%,
			rgba(79, 70, 229, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 70%,
			rgba(236, 72, 153, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 90%,
			rgba(34, 197, 94, 0.08) 0%,
			transparent 50%
		);
	z-index: -1;
}

[data-theme='light'] .sidebar::before {
	background: radial-gradient(
			circle at 20% 30%,
			rgba(79, 70, 229, 0.03) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 70%,
			rgba(236, 72, 153, 0.03) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 90%,
			rgba(34, 197, 94, 0.03) 0%,
			transparent 50%
		);
}

.profile {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.profile-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.profile h1 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.theme-switcher {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--secondary-bg);
	border: 2px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.theme-switcher::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--gradient-1);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: -1;
}

.theme-switcher:hover {
	transform: scale(1.1);
	border-color: var(--accent-color);
}

.theme-switcher:hover::before {
	opacity: 0.1;
}

.theme-switcher svg {
	width: 20px;
	height: 20px;
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

.theme-switcher:hover svg {
	color: var(--text-primary);
}

.theme-switcher .sun-icon,
.theme-switcher .moon-icon {
	position: absolute;
	transition: all 0.3s ease;
}

.theme-switcher .sun-icon {
	opacity: 0;
	transform: rotate(180deg) scale(0.5);
}

.theme-switcher .moon-icon {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

[data-theme='light'] .theme-switcher .sun-icon {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

[data-theme='light'] .theme-switcher .moon-icon {
	opacity: 0;
	transform: rotate(-180deg) scale(0.5);
}

.profile-image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.profile-image::before {
	content: '';
	position: absolute;
	inset: -3px;
	background: var(--gradient-1);
	border-radius: 50%;
	z-index: -1;
	animation: rotate 3s linear infinite;
}

.profile-image:hover {
	transform: scale(1.05);
}

.profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--secondary-bg);
}

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

.profile h1 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.profile .title {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.profile .location {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Navigation */
.nav {
	margin-bottom: 3rem;
}

.nav ul {
	list-style: none;
}

.nav li {
	margin-bottom: 1rem;
}

.nav a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	display: block;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.nav a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--gradient-1);
	opacity: 0.1;
	transition: all 0.3s ease;
	z-index: -1;
}

.nav a:hover {
	color: var(--text-primary);
	transform: translateX(10px);
}

.nav a:hover::before {
	left: 0;
}

.nav a.active {
	color: var(--text-primary);
	background: rgba(79, 70, 229, 0.1);
	border-left: 3px solid var(--accent-color);
}

/* Social links */
.social-links {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.social-link {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.social-link::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--gradient-2);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: -1;
}

.social-link:hover {
	color: var(--text-primary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.social-link:hover::before {
	opacity: 1;
}

.copyright {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-align: center;
}

/* Main content */
.main-content {
	flex: 1;
	padding: 3rem;
	max-width: 1000px;
}

.page {
	display: none;
	animation: fadeIn 0.5s ease-in-out;
}

.page.active {
	display: block;
}

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

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-align: center;
}

/* Articles Section */
/* Breadcrumbs */
.breadcrumbs {
	padding: 1rem 0;
	font-size: 0.9rem;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 2rem;
}

.breadcrumbs a {
	color: var(--accent-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumbs a:hover {
	color: var(--text-primary);
}

.blog-post {
	background: var(--secondary-bg);
	border-radius: 16px;
	padding: 2.5rem;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	margin-bottom: 2rem;
}

.blog-post::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.blog-post:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.blog-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.blog-meta .reading-time {
	opacity: 0.8;
	font-style: italic;
}

.blog-tag {
	background: var(--gradient-3);
	color: var(--text-primary);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.blog-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.blog-content {
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.blog-content .emoji {
	font-size: 1.2em;
	margin-right: 0.5rem;
}

.read-more {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.read-more::after {
	content: '→';
	margin-left: 0.5rem;
	transition: all 0.3s ease;
}

.read-more:hover {
	color: var(--text-primary);
}

.read-more:hover::after {
	transform: translateX(5px);
}

/* Portfolio Page */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.project-card {
	background: var(--secondary-bg);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	position: relative;
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.project-image {
	width: 100%;
	height: 200px;
	background: var(--gradient-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: white;
	position: relative;
	overflow: hidden;
}

.project-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	transition: transform 0.6s;
}

.project-card:hover .project-image::before {
	transform: translateX(100%);
}

/* Project gradient backgrounds */
.project-image.gradient-1 {
	background: var(--gradient-1);
}

.project-image.gradient-2 {
	background: var(--gradient-2);
}

.project-image.gradient-3 {
	background: var(--gradient-3);
}

.project-image.gradient-4 {
	background: var(--gradient-4);
}

.project-content {
	padding: 2rem;
}

.project-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.project-description {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.tech-tag {
	background: var(--gradient-3);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 500;
}

.project-links {
	display: flex;
	gap: 1rem;
}

.project-link {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.project-link::after {
	content: '↗';
	margin-left: 0.25rem;
	transition: all 0.3s ease;
}

.project-link:hover {
	color: var(--text-primary);
	transform: translateY(-2px);
}

/* About Page */
.about-content {
	display: grid;
	gap: 2rem;
}

.about-section {
	background: var(--secondary-bg);
	border-radius: 16px;
	padding: 2.5rem;
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.about-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	background: var(--gradient-2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.skill-item {
	background: var(--gradient-4);
	color: var(--secondary-bg);
	padding: 1rem;
	border-radius: 12px;
	text-align: center;
	font-weight: 500;
	transition: all 0.3s ease;
}

.skill-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.timeline {
	position: relative;
	padding-left: 2rem;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0.5rem;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--gradient-1);
}

.timeline-item {
	position: relative;
	margin-bottom: 2rem;
	padding-left: 2rem;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -2rem;
	top: 0.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent-color);
	border: 3px solid var(--secondary-bg);
}

.timeline-year {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.timeline-title {
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.timeline-description {
	color: var(--text-secondary);
	line-height: 1.6;
}

/* Contact Page */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 2rem;
}

.contact-form {
	background: var(--secondary-bg);
	border-radius: 16px;
	padding: 2.5rem;
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.contact-form::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	background: var(--primary-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-primary);
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-submit {
	background: var(--gradient-1);
	color: white;
	border: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.contact-info {
	background: var(--secondary-bg);
	border-radius: 16px;
	padding: 2.5rem;
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.contact-info::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.contact-item:hover {
	background: rgba(79, 70, 229, 0.1);
}

/* WhatsApp Contact Item */
.whatsapp-contact {
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.whatsapp-contact::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(37, 211, 102, 0.1) 50%,
		transparent 100%
	);
	transition: left 0.5s ease;
}

.whatsapp-contact:hover::before {
	left: 100%;
}

.whatsapp-contact:hover {
	background: rgba(37, 211, 102, 0.05);
	border-left: 3px solid #25d366;
	transform: translateX(5px);
}

.whatsapp-contact:hover .contact-icon {
	background: #25d366;
	transform: scale(1.1);
}

.whatsapp-contact:hover h4 {
	color: #25d366;
}

.whatsapp-contact:active {
	transform: translateX(5px) scale(0.98);
}

.contact-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gradient-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.contact-details a {
	color: inherit;
	text-decoration: none;
}

.contact-details a:hover {
	color: inherit;
	text-decoration: none;
}

/* Mobile Navigation Overlay - hidden on desktop */
.mobile-nav-overlay {
	display: none;
}

/* Responsive design */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	/* Sidebar stays visible but navigation is hidden */
	.sidebar {
		width: 100%;
		padding: 1.5rem;
		position: relative;
	}

	/* Hide desktop navigation on mobile */
	.sidebar .nav {
		display: none;
	}

	/* Show mobile menu toggle */
	.mobile-menu-toggle {
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 4px;
		width: 44px;
		height: 44px;
		background: var(--secondary-bg);
		border: 1px solid var(--border-color);
		cursor: pointer;
		padding: 8px;
		transition: all 0.3s ease;
		border-radius: 8px;
		position: fixed;
		top: 1rem;
		right: 1rem;
		z-index: 1001;
		box-shadow: var(--shadow-lg);
	}

	.mobile-menu-toggle:focus {
		outline: 2px solid var(--accent-color);
		outline-offset: 2px;
	}

	.mobile-menu-toggle:hover {
		background: var(--border-color);
		transform: scale(1.05);
	}

	.mobile-menu-toggle span {
		width: 20px;
		height: 2px;
		background: var(--text-primary);
		border-radius: 2px;
		transition: all 0.3s ease;
		transform-origin: center;
		display: block;
		position: relative;
	}

	.mobile-menu-toggle.active {
		gap: 0;
	}

	.mobile-menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg);
		position: absolute;
	}

	.mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
		transform: scale(0);
	}

	.mobile-menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg);
		position: absolute;
	}

	/* Mobile Navigation Overlay */
	.mobile-nav-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.8);
		z-index: 999;
		backdrop-filter: blur(4px);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
	}

	.mobile-nav-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.mobile-nav-content {
		background: var(--secondary-bg);
		border-radius: 12px;
		padding: 3rem 2rem 2rem;
		box-shadow: var(--shadow-lg);
		border: 1px solid var(--border-color);
		max-width: 300px;
		width: 90%;
		position: relative;
		transform: translateY(-20px);
		transition: transform 0.3s ease;
	}

	.mobile-nav-overlay.active .mobile-nav-content {
		transform: translateY(0);
	}

	/* Close button for mobile navigation */
	.mobile-nav-close {
		position: absolute;
		top: 1rem;
		right: 1rem;
		width: 32px;
		height: 32px;
		background: transparent;
		border: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 6px;
		transition: all 0.3s ease;
		color: var(--text-secondary);
	}

	.mobile-nav-close:hover {
		background: var(--border-color);
		color: var(--text-primary);
	}

	.mobile-nav-close:focus {
		outline: 2px solid var(--accent-color);
		outline-offset: 2px;
	}

	.mobile-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.mobile-nav li {
		margin: 0.5rem 0;
		opacity: 0;
		transform: translateY(20px);
		transition: all 0.3s ease;
	}

	.mobile-nav-overlay.active .mobile-nav li {
		opacity: 1;
		transform: translateY(0);
	}

	.mobile-nav-overlay.active .mobile-nav li:nth-child(1) {
		transition-delay: 0.1s;
	}

	.mobile-nav-overlay.active .mobile-nav li:nth-child(2) {
		transition-delay: 0.2s;
	}

	.mobile-nav-overlay.active .mobile-nav li:nth-child(3) {
		transition-delay: 0.3s;
	}

	.mobile-nav-overlay.active .mobile-nav li:nth-child(4) {
		transition-delay: 0.4s;
	}

	.mobile-nav a {
		display: block;
		color: var(--text-primary);
		text-decoration: none;
		padding: 1rem;
		border-radius: 8px;
		transition: all 0.3s ease;
		text-align: center;
		font-weight: 500;
	}

	.mobile-nav a:hover,
	.mobile-nav a.active {
		background: var(--accent-color);
		color: white;
		transform: translateY(-2px);
	}

	/* Profile header adjustments */
	.profile-header {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 1rem 0;
	}

	.profile-header h1 {
		margin: 0;
	}

	/* Main content adjustments */
	.main-content {
		padding: 2rem 1.5rem;
		width: 100%;
		padding-top: 4rem; /* Add space for fixed toggle button */
	}

	.profile-image {
		width: 100px;
		height: 100px;
	}

	.blog-title {
		font-size: 1.5rem;
	}

	.page-title {
		font-size: 2rem;
	}

	.nav a:hover {
		transform: none;
	}

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

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

	.contact-form {
		grid-row: 2;
	}

	.contact-info {
		grid-row: 1;
	}

	.skills-grid {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	}
}

/* Loading animation */
.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--primary-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.page-loader.hidden {
	opacity: 0;
	pointer-events: none;
}

.loader {
	width: 50px;
	height: 50px;
	border: 3px solid var(--border-color);
	border-top: 3px solid var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Light theme form styling */
[data-theme='light'] .form-group input,
[data-theme='light'] .form-group textarea {
	background: #ffffff;
	border: 2px solid var(--border-color);
	color: var(--text-primary);
}

[data-theme='light'] .form-group input:focus,
[data-theme='light'] .form-group textarea:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Light theme skill items */
[data-theme='light'] .skill-item {
	background: var(--gradient-4);
	color: var(--text-primary);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light theme blog tags */
[data-theme='light'] .blog-tag,
[data-theme='light'] .tech-tag {
	color: #ffffff;
}

/* Single Post Page */
.single-post {
	max-width: none;
}

.post-header {
	text-align: center;
	margin-bottom: 3rem;
}

.post-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.post-title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
}

.post-excerpt {
	font-size: 1.2rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.post-image {
	width: 100%;
	height: 400px;
	border-radius: 16px;
	background: var(--gradient-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	color: white;
	margin-bottom: 3rem;
	position: relative;
	overflow: hidden;
}

.post-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	animation: shimmer 3s ease-in-out infinite;
}

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

.post-content {
	background: var(--secondary-bg);
	border-radius: 16px;
	padding: 3rem;
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
	line-height: 1.8;
}

.post-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.02) 0%,
		rgba(236, 72, 153, 0.02) 100%
	);
	z-index: -1;
}

.post-content h2 {
	font-size: 2rem;
	font-weight: 600;
	margin: 2rem 0 1rem 0;
	background: var(--gradient-2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.post-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 1.5rem 0 1rem 0;
	color: var(--text-primary);
}

.post-content p {
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
}

.post-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 2rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--text-secondary);
	background: rgba(79, 70, 229, 0.05);
	padding: 1.5rem 2rem;
	border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
	color: var(--text-secondary);
}

.post-content li {
	margin-bottom: 0.5rem;
}

.post-content code {
	background: var(--primary-bg);
	color: var(--accent-color);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.9em;
	border: 1px solid var(--border-color);
}

.post-content pre {
	background: var(--primary-bg);
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 1.5rem 0;
	border: 1px solid var(--border-color);
}

.post-content pre code {
	background: none;
	border: none;
	padding: 0;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.back-to-articles {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	background: var(--secondary-bg);
}

.back-to-articles:hover {
	color: var(--text-primary);
	transform: translateX(-5px);
	background: var(--primary-bg);
}

.back-to-articles svg {
	transition: all 0.3s ease;
}

.back-to-articles:hover svg {
	transform: translateX(-3px);
}

.share-buttons {
	display: flex;
	gap: 1rem;
}

.share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
	background: var(--secondary-bg);
	transition: all 0.3s ease;
	text-decoration: none;
}

.share-btn:hover {
	color: var(--text-primary);
	transform: translateY(-2px);
	background: var(--primary-bg);
}
/* Light theme timeline */
[data-theme='light'] .timeline::before {
	background: var(--gradient-1);
}

[data-theme='light'] .timeline-item::before {
	background: var(--accent-color);
	border: 3px solid var(--secondary-bg);
}

/* Light theme single post */
@media (max-width: 768px) {
	.post-title {
		font-size: 2rem;
	}

	.post-image {
		height: 250px;
		font-size: 3rem;
	}

	.post-content {
		padding: 2rem;
	}

	.post-navigation {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.share-buttons {
		justify-content: center;
	}
}
.scroll-indicator {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: var(--gradient-1);
	z-index: 1000;
	transition: width 0.1s ease;
}

/* AJAX Post Loading Styles */
.loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	text-align: center;
}

.loading-spinner .spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--border-color);
	border-top: 3px solid var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

.loading-spinner p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* Hidden state utilities */
.loading-spinner.hidden {
	display: none;
}

.post-content-container.hidden {
	display: none;
}

.prev-post.hidden,
.next-post.hidden {
	display: none;
}

/* Single Post Enhancements */
.single-post .post-content-container {
	animation: fadeIn 0.5s ease;
}

.single-post .post-header {
	margin-bottom: 2rem;
}

.single-post .post-meta {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.single-post .post-meta span {
	font-size: 0.85rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.single-post .post-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	background: var(--gradient-1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.single-post .post-excerpt {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 0;
}

.single-post .post-image {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	font-size: 4rem;
	background: var(--gradient-1);
}

.single-post .post-image img {
	width: 100%;
	height: auto;
	display: block;
}

.single-post .post-content {
	font-size: 1.1rem;
	line-height: 1.8;
	margin: 3rem 0;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
	margin: 2rem 0 1rem;
	color: var(--text-primary);
}

.single-post .post-content p {
	margin-bottom: 1.5rem;
}

.single-post .post-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	background: var(--card-bg);
	border-radius: 0 8px 8px 0;
	font-style: italic;
}

.single-post .post-content code {
	background: var(--card-bg);
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
}

.single-post .post-content pre {
	background: var(--card-bg);
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 2rem 0;
}

.single-post .post-content pre code {
	background: none;
	padding: 0;
}

/* Error Message Styles */
.error-message {
	text-align: center;
	padding: 4rem 2rem;
}

.error-message h2 {
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.error-message p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

/* Post Navigation Enhancements */
.single-post .post-pagination {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.single-post .prev-post,
.single-post .next-post {
	display: block;
}

.single-post .next-post {
	text-align: right;
}

.single-post .prev-post a,
.single-post .next-post a {
	display: block;
	padding: 1.5rem;
	background: var(--card-bg);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	text-decoration: none;
}

.single-post .prev-post a:hover,
.single-post .next-post a:hover {
	border-color: var(--accent-color);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.single-post .nav-label {
	display: block;
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.single-post .nav-title {
	display: block;
	color: var(--text-primary);
	font-weight: 600;
	line-height: 1.4;
}

/* Responsive Design for Single Post */
@media (max-width: 768px) {
	.single-post .post-title {
		font-size: 2rem;
	}

	.single-post .post-meta {
		flex-direction: column;
		gap: 0.5rem;
	}

	.single-post .post-pagination {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.single-post .next-post {
		text-align: left;
	}

	.single-post .post-content {
		font-size: 1rem;
	}
}
