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

.loading-content {
	text-align: center;
	color: var(--text-primary);
}

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

.loading-content p {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin: 0;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Light Theme Colors - Enhanced for better visibility */
	--primary-color: #4338ca; /* Deeper indigo for better contrast */
	--secondary-color: #6d28d9; /* Deeper purple for better contrast */
	--accent-color: #0284c7; /* Deeper blue for better contrast */
	--text-primary: #111827; /* Darker for better visibility */
	--text-secondary: #374151; /* Darker secondary text */
	--text-muted: #6b7280; /* Better contrast for muted text */
	--bg-primary: #ffffff;
	--bg-secondary: #f1f5f9; /* Slightly more contrast */
	--bg-glass: rgba(
		255,
		255,
		255,
		0.25
	); /* Restored glassmorphic transparency */
	--border-glass: rgba(
		71,
		85,
		105,
		0.15
	); /* Subtle but visible border */
	--shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08); /* Gentle shadow */
	--backdrop-blur: blur(
		20px
	); /* Restored blur for glassmorphic effect */
	--transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--navbar-bg: rgba(255, 255, 255, 0.8); /* More opaque navbar */
	--navbar-border: rgba(71, 85, 105, 0.12); /* More visible border */
	--gradient-light: linear-gradient(
		135deg,
		#f8fafc 0%,
		#e2e8f0 25%,
		#f1f5f9 50%,
		#ffffff 75%,
		#f8fafc 100%
	); /* Beautiful light gradient */
	--card-hover-shadow: 0 20px 60px 0 rgba(15, 23, 42, 0.2); /* Stronger hover shadow */
	--text-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); /* Subtle text shadow */
}

[data-theme='dark'] {
	/* Dark Theme Colors - Premium dark design */
	--text-primary: #f8fafc;
	--text-secondary: #e2e8f0;
	--text-muted: #94a3b8;
	--bg-primary: #0a0e1a;
	--bg-secondary: #1e293b;
	--bg-glass: rgba(15, 23, 42, 0.4);
	--border-glass: rgba(148, 163, 184, 0.15);
	--shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
	--navbar-bg: rgba(15, 23, 42, 0.6);
	--navbar-border: rgba(148, 163, 184, 0.1);
	--gradient-light: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	--card-hover-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.4);
	--text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	color: var(--text-primary);
	background: var(--bg-primary);
	overflow-x: hidden;
	transition: var(--transition);
}

/* Background */
.background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
	background: var(--gradient-light);
	transition: var(--transition);
}

.gradient-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(79, 70, 229, 0.03) 0%,
		rgba(124, 58, 237, 0.05) 25%,
		rgba(14, 165, 233, 0.03) 50%,
		rgba(59, 130, 246, 0.04) 75%,
		rgba(147, 51, 234, 0.03) 100%
	);
	animation: gradientShift 20s ease infinite;
	transition: var(--transition);
}

/* Enhanced light theme gradient overlay - Light version of dark mode colors */
[data-theme='light'] .gradient-overlay {
	background: linear-gradient(
		135deg,
		rgba(241, 245, 249, 0.9) 0%,
		/* Light equivalent of rgba(30, 41, 59, 0.6) */
			rgba(226, 232, 240, 0.9) 25%,
		/* Light equivalent of rgba(51, 65, 85, 0.4) */
			rgba(248, 250, 252, 0.9) 50%,
		/* Light equivalent of rgba(15, 23, 42, 0.8) */
			rgba(219, 234, 254, 0.9) 75%,
		/* Light equivalent of rgba(30, 58, 138, 0.3) */
			rgba(224, 231, 255, 0.9) 100%
			/* Light equivalent of rgba(67, 56, 202, 0.2) */
	);
}

[data-theme='dark'] .gradient-overlay {
	background: linear-gradient(
		135deg,
		rgba(30, 41, 59, 0.6) 0%,
		rgba(51, 65, 85, 0.4) 25%,
		rgba(15, 23, 42, 0.8) 50%,
		rgba(30, 58, 138, 0.3) 75%,
		rgba(67, 56, 202, 0.2) 100%
	);
}

@keyframes gradientShift {
	0%,
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
	33% {
		opacity: 0.8;
		transform: scale(1.02) rotate(0.5deg);
	}
	66% {
		opacity: 0.9;
		transform: scale(1.01) rotate(-0.3deg);
	}
}

.floating-shapes {
	position: absolute;
	width: 100%;
	height: 100%;
}

.shape {
	position: absolute;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: float 18s infinite ease-in-out;
	transition: var(--transition);
}

[data-theme='dark'] .shape {
	background: rgba(148, 163, 184, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.08);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.shape-1 {
	width: 120px;
	height: 120px;
	top: 15%;
	left: 8%;
	animation-delay: 0s;
}

.shape-2 {
	width: 80px;
	height: 80px;
	top: 70%;
	right: 15%;
	animation-delay: 6s;
}

.shape-3 {
	width: 60px;
	height: 60px;
	top: 85%;
	left: 25%;
	animation-delay: 12s;
}

.shape-4 {
	width: 100px;
	height: 100px;
	top: 25%;
	right: 25%;
	animation-delay: 3s;
}

.shape-5 {
	width: 40px;
	height: 40px;
	top: 5%;
	left: 65%;
	animation-delay: 9s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px) rotate(0deg) scale(1);
		opacity: 0.6;
	}
	25% {
		transform: translateY(-40px) rotate(90deg) scale(1.1);
		opacity: 0.8;
	}
	50% {
		transform: translateY(-80px) rotate(180deg) scale(0.9);
		opacity: 0.4;
	}
	75% {
		transform: translateY(-40px) rotate(270deg) scale(1.05);
		opacity: 0.7;
	}
}

/* Glass Effect - Premium Edition */
.glass {
	background: var(--bg-glass);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border: 1px solid var(--border-glass);
	box-shadow: var(--shadow-glass);
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

/* Light theme specific glass styles */
[data-theme='light'] .glass {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(25px) saturate(180%) brightness(120%);
	-webkit-backdrop-filter: blur(25px) saturate(180%) brightness(120%);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
		0 4px 16px rgba(15, 23, 42, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.glass::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent
	);
	opacity: 0.8;
}

/* Light theme top edge highlight */
[data-theme='light'] .glass::before {
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.8),
		transparent
	);
}

.glass:hover {
	box-shadow: var(--card-hover-shadow);
	border-color: rgba(79, 70, 229, 0.2);
}

/* Light theme hover effect */
[data-theme='light'] .glass:hover {
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(30px) saturate(200%) brightness(130%);
	-webkit-backdrop-filter: blur(30px) saturate(200%) brightness(130%);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1),
		0 6px 20px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 0 0 1px rgba(255, 255, 255, 0.3);
	border-color: rgba(67, 56, 202, 0.25);
	/* transform: translateY(-2px); */
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Navigation */
.navbar {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(90% - 40px);
	max-width: 960px;
	z-index: 1000;
	padding: 16px 32px;
	transition: var(--transition);
	background: var(--navbar-bg);
	border: 1px solid var(--navbar-border);
	border-radius: 20px;
	backdrop-filter: var(--backdrop-blur);
	box-sizing: border-box;
}

/* Enhanced light theme navbar */
[data-theme='light'] .navbar {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
		0 4px 16px rgba(15, 23, 42, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	min-height: 60px; /* Ensure consistent height */
}

.logo h2 {
	color: var(--text-primary);
	font-weight: 700;
	font-size: 1.5rem;
	text-shadow: var(--text-shadow);
	background: linear-gradient(
		45deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 1.8rem;
	margin: 0;
	padding: 0;
	flex: 1;
	justify-content: center;
	max-width: calc(100% - 200px);
}

.nav-link {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	position: relative;
	text-shadow: var(--text-shadow);
	padding: 8px 16px;
	border-radius: 12px;
}

/* Enhanced light theme nav links */
[data-theme='light'] .nav-link {
	color: #1e293b;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.nav-link:hover {
	color: var(--primary-color);
	background: rgba(79, 70, 229, 0.1);
}

/* Enhanced light theme nav link hover */
[data-theme='light'] .nav-link:hover {
	color: #4338ca;
	background: rgba(79, 70, 229, 0.08);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(
		45deg,
		var(--primary-color),
		var(--secondary-color)
	);
	transition: var(--transition);
	transform: translateX(-50%);
	border-radius: 2px;
}

.nav-link:hover::after {
	width: 80%;
}

.nav-controls {
	display: flex;
	align-items: center; /* Center vertically */
	justify-content: center;
	gap: 1rem;
	height: 100%;
	margin-right: 5px;
}

.theme-toggle {
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	color: var(--text-primary);
	font-size: 1.1rem;
	cursor: pointer;
	padding: 12px;
	border-radius: 16px;
	transition: var(--transition);
	backdrop-filter: var(--backdrop-blur);
	box-shadow: var(--shadow-glass);
	position: relative;
	overflow: hidden;
}

.theme-toggle::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(79, 70, 229, 0.2),
		transparent
	);
	transition: left 0.5s ease;
}

.theme-toggle:hover::before {
	left: 100%;
}

.theme-toggle:hover {
	background: rgba(79, 70, 229, 0.15);
	color: var(--primary-color);
	box-shadow: 0 0 25px rgba(79, 70, 229, 0.3);
}

/* Main hamburger style is defined in the Mobile Navigation section */

.hamburger:hover {
	background: rgba(79, 70, 229, 0.15);
	border-color: var(--primary-color);
}

.hamburger span {
	width: 24px;
	height: 3px;
	background: var(--text-primary);
	transition: all 0.3s ease;
	border-radius: 3px;
	display: block;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 140px 20px 60px;
	position: relative;
}

.hero-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 4rem;
	align-items: center;
	width: 100%;
}

.hero-title {
	font-size: 4.5rem;
	font-weight: 900;
	line-height: 1.05;
	margin-bottom: 2rem;
	letter-spacing: -0.03em;
	position: relative;
}

.highlight {
	color: var(--text-secondary);
	font-weight: 300;
	font-size: 2.8rem;
	display: block;
	margin-bottom: 1rem;
	opacity: 0.9;
	letter-spacing: 0.02em;
}

.name-animation {
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 30%,
		var(--accent-color) 60%,
		var(--primary-color) 100%
	);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: enhancedTextGradient 4s ease-in-out infinite;
	display: block;
	font-weight: 900;
	text-shadow: 0 0 40px rgba(74, 144, 226, 0.3);
	position: relative;
}

.name-animation::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--primary-color),
		var(--secondary-color),
		transparent
	);
	border-radius: 2px;
	opacity: 0.6;
	animation: underlineGlow 4s ease-in-out infinite;
}

@keyframes enhancedTextGradient {
	0%,
	100% {
		background-position: 0% 50%;
		transform: scale(1);
		filter: hue-rotate(0deg);
	}
	25% {
		background-position: 50% 0%;
		transform: scale(1.02);
		filter: hue-rotate(90deg);
	}
	50% {
		background-position: 100% 50%;
		transform: scale(1.04);
		filter: hue-rotate(180deg);
	}
	75% {
		background-position: 50% 100%;
		transform: scale(1.02);
		filter: hue-rotate(270deg);
	}
}

@keyframes underlineGlow {
	0%,
	100% {
		opacity: 0.3;
		transform: scaleX(0.8);
	}
	50% {
		opacity: 0.8;
		transform: scaleX(1.1);
	}
}

.hero-subtitle {
	font-size: 2.2rem;
	color: var(--text-secondary);
	font-weight: 400;
	margin-bottom: 2.5rem;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
	opacity: 0.95;
}

.hero-description {
	font-size: 1.3rem;
	color: var(--text-muted);
	line-height: 1.8;
	margin-bottom: 3.5rem;
	max-width: 560px;
	font-weight: 400;
	opacity: 0.9;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	margin-bottom: 3rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 16px 32px;
	border-radius: 16px;
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
	border: none;
	cursor: pointer;
	font-size: 1rem;
	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.5s ease;
}

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

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	color: white;
	box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced light theme primary button */
[data-theme='light'] .btn-primary {
	background: linear-gradient(135deg, #4338ca, #6d28d9);
	color: white;
	box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
	background: linear-gradient(
		135deg,
		var(--secondary-color),
		var(--primary-color)
	);
}

/* Enhanced light theme primary button hover */
[data-theme='light'] .btn-primary:hover {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	box-shadow: 0 12px 35px rgba(79, 70, 229, 0.35),
		0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-secondary {
	background: var(--bg-glass);
	color: var(--text-primary);
	border: 1px solid var(--border-glass);
	backdrop-filter: var(--backdrop-blur);
	box-shadow: var(--shadow-glass);
}

/* Enhanced light theme secondary button */
[data-theme='light'] .btn-secondary {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	color: var(--primary-color);
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
	transform: translateY(-3px);
	background: rgba(79, 70, 229, 0.1);
	border-color: var(--primary-color);
	box-shadow: var(--card-hover-shadow);
}

/* Enhanced light theme secondary button hover */
[data-theme='light'] .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(30px) saturate(200%);
	-webkit-backdrop-filter: blur(30px) saturate(200%);
	color: #4338ca;
	border-color: rgba(79, 70, 229, 0.4);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08),
		0 0 0 2px rgba(79, 70, 229, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-stats {
	display: flex;
	gap: 2rem;
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

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

.profile-card {
	padding: 2rem;
	text-align: center;
	animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

.profile-image {
	position: relative;
	margin-bottom: 1.5rem;
	display: inline-block;
}

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

.profile-ring {
	position: absolute;
	top: -8px;
	left: -8px;
	width: 136px;
	height: 136px;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 2s linear infinite;
}

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

.profile-info h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.profile-info p {
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.profile-badges {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
}

.badge {
	background: var(--bg-glass);
	color: var(--text-primary);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid var(--border-glass);
}

.scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.scroll-arrow {
	color: var(--text-muted);
	font-size: 1.5rem;
	animation: bounce 1.5s infinite;
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Sections */
section {
	padding: 80px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-title {
	font-size: 3.2rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	position: relative;
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 50%,
		var(--accent-color) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -0.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--primary-color),
		transparent
	);
	border-radius: 2px;
	box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.section-subtitle {
	font-size: 1.2rem;
	color: var(--text-muted);
	font-weight: 400;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
	opacity: 0.85;
}

/* About Section */
.about-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	align-items: start;
}

.text-card {
	padding: 2.5rem;
}

.text-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.text-card p {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.about-highlights {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.highlight-card {
	padding: 1.5rem;
	text-align: center;
	transition: var(--transition);
}

.highlight-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.highlight-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.highlight-card h4 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.highlight-card p {
	color: var(--text-muted);
}

/* Skills Section */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

.skill-category {
	padding: 2.5rem;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background: var(--bg-glass);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border-glass);
	border-radius: 18px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-category::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--primary-color),
		var(--secondary-color),
		var(--accent-color)
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.skill-category:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2),
		0 8px 32px rgba(74, 144, 226, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-color: rgba(99, 102, 241, 0.3);
}

.skill-category:hover::before {
	opacity: 1;
}

.skill-category h3 {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 2rem;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--border-glass);
}

.skill-category h3 i {
	font-size: 1.6rem;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.skill-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.skill-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

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

.skill-item:hover {
	background: rgba(99, 102, 241, 0.08);
	border-color: rgba(99, 102, 241, 0.3);
	transform: translateX(4px);
}

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

.skill-item i {
	font-size: 1.2rem;
	color: var(--primary-color);
	min-width: 20px;
}

.skill-item span {
	font-weight: 500;
	color: var(--text-primary);
}

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

.project-card {
	padding: 2.5rem;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
	background: var(--bg-glass);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border-glass);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-card:hover {
	transform: translateY(-12px) scale(1.02);
	box-shadow: 0 25px 80px rgba(99, 102, 241, 0.25),
		0 10px 40px rgba(74, 144, 226, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-color: rgba(99, 102, 241, 0.3);
}

.project-card:hover::before {
	opacity: 1;
}

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.project-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
}

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

.project-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	transition: var(--transition);
}

.project-link:hover {
	background: var(--primary-color);
	color: white;
	transform: scale(1.1);
}

.project-content h3 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.project-content p {
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

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

.tech-tag {
	background: var(--bg-glass);
	color: var(--text-primary);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid var(--border-glass);
}

.project-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.feature {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.feature i {
	color: var(--accent-color);
	font-size: 0.8rem;
}

/* Development Tag */
.dev-tag {
	display: inline-block;
	background: linear-gradient(135deg, #ff6b6b, #feca57);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 0.5rem;
	animation: pulse 2s infinite;
}

/* Deployed Tag */
.deployed-tag {
	display: inline-block;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 0.5rem;
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
	}
}

/* Resume Section */
.resume-content {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.resume-card {
	padding: 3rem;
}

.resume-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

.resume-info h3 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--text-primary);
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.resume-info p {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 1.1rem;
}

.resume-actions {
	display: flex;
	gap: 1rem;
	flex-shrink: 0;
}

.achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.achievement-card {
	padding: 2rem;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background: var(--bg-glass);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border-glass);
	border-radius: 18px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.achievement-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--primary-color),
		var(--secondary-color),
		var(--accent-color)
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.achievement-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2),
		0 8px 32px rgba(74, 144, 226, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-color: rgba(99, 102, 241, 0.3);
}

.achievement-card:hover::before {
	opacity: 1;
}

.achievement-icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.achievement-card h4 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.achievement-card p {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.achievement-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 0.5rem 1rem;
	background: rgba(79, 70, 229, 0.1);
	border-radius: 8px;
	border: 1px solid rgba(79, 70, 229, 0.2);
}

.achievement-link:hover {
	background: rgba(79, 70, 229, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.achievement-link i {
	font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact-info-center {
	max-width: 600px;
	width: 100%;
}

.contact-card {
	padding: 3rem;
	text-align: center;
}

.contact-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.contact-card p {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 2rem;
}

.contact-methods {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-method {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	border-radius: 12px;
	color: var(--text-primary);
	text-decoration: none;
	transition: var(--transition);
}

.contact-method:hover {
	background: rgba(99, 102, 241, 0.1);
	border-color: var(--primary-color);
	transform: translateX(5px);
}

.contact-method i {
	font-size: 1.2rem;
	color: var(--primary-color);
}

/* Footer */
.footer {
	background: var(--bg-glass);
	backdrop-filter: var(--backdrop-blur);
	border-top: 1px solid var(--border-glass);
	padding: 2rem 0;
}

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

.footer-text {
	color: var(--text-muted);
}

.footer-text i {
	color: #ef4444;
}

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

.footer-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	border-radius: 8px;
	color: var(--text-primary);
	text-decoration: none;
	transition: var(--transition);
}

.footer-links a:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

/* Debug: Temporary - remove after testing */
.nav-menu.active {
	background: rgba(
		255,
		0,
		0,
		0.8
	) !important; /* Red background to make it obvious */
	border: 3px solid #00ff00 !important; /* Green border */
	left: 0 !important;
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 99999 !important; /* Much higher z-index */
	position: fixed !important;
	top: 0 !important; /* Start from top of screen */
}

.hamburger.active {
	background: rgba(
		0,
		0,
		255,
		0.5
	) !important; /* Blue background when active */
	padding: 5px;
	border-radius: 5px;
	z-index: 100000 !important; /* Even higher z-index */
}

/* Mobile Navigation Design */

/* Mobile Menu Styles */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--bg-glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	z-index: 9999;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
	padding: 20px;
	box-sizing: border-box;
}

.mobile-menu.active {
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.4s ease-out;
}

.mobile-menu-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

/* Close Button for Mobile Menu */
.close-menu-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	color: var(--text-primary);
	font-size: 1.2rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10002;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.close-menu-btn:hover {
	background: rgba(255, 0, 0, 0.15);
	color: #ff3b3b;
	transform: rotate(90deg);
}

/* Hamburger Button Styles */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	gap: 3px;
	position: relative;
	z-index: 10001;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bg-glass);
	border: 1px solid var(--border-glass);
	box-shadow: var(--shadow-glass);
	padding: 8px;
	margin: auto 0; /* Center vertically in parent */
	align-self: center; /* Additional vertical centering */
}

.hamburger:hover {
	background: rgba(79, 70, 229, 0.15);
	border-color: var(--primary-color);
}

.hamburger span {
	width: 24px;
	height: 3px;
	background: var(--text-primary);
	border-radius: 3px;
	display: block;
	transition: none !important;
	transform: none !important;
}

.hamburger .hamburger-line:nth-child(1) {
	margin-bottom: 6px;
}

.hamburger .hamburger-line:nth-child(3) {
	margin-top: 6px;
}

.hamburger.active {
	background: rgba(79, 70, 229, 0.2);
	border-color: var(--primary-color);
	box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

/* Active state styling is handled in JavaScript */
.hamburger.active span {
	background: var(--primary-color);
}

/* We'll completely replace the spans using JavaScript for immediate effect */

.mobile-menu .nav-menu {
	width: 100%;
	height: auto; /* Changed from 100% to auto for better spacing */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 280px; /* Constrain width for more compact appearance */
	margin: 0 auto; /* Center horizontally */
	gap: 0.5rem; /* Add consistent spacing between items */
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
	/* Show hamburger button */
	.hamburger {
		display: flex;
		z-index: 10001;
		position: relative;
	}

	/* Hide desktop nav menu */
	.navbar .nav-menu {
		display: none;
	}

	/* Create a backdrop when mobile menu is active */
	body.has-mobile-menu:before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9000;
	}

	/* Make sure navbar is behind the mobile menu */
	.navbar {
		z-index: 1000;
	}

	.mobile-menu .nav-menu li {
		margin: 0.6rem 0; /* Reduced vertical margin for more compact look */
		width: 100%; /* Use full width of parent */
		max-width: 260px; /* Slightly reduced from 300px */
		text-align: center;
		opacity: 0;
		transform: translateY(30px) scale(0.9);
		animation: fadeInUp 0.6s ease forwards;
	}

	.mobile-menu .nav-menu li:nth-child(1) {
		animation-delay: 0.1s;
	}
	.mobile-menu .nav-menu li:nth-child(2) {
		animation-delay: 0.15s;
	}
	.mobile-menu .nav-menu li:nth-child(3) {
		animation-delay: 0.2s;
	}
	.mobile-menu .nav-menu li:nth-child(4) {
		animation-delay: 0.25s;
	}
	.mobile-menu .nav-menu li:nth-child(5) {
		animation-delay: 0.3s;
	}
	.mobile-menu .nav-menu li:nth-child(6) {
		animation-delay: 0.35s;
	}

	.mobile-menu .nav-link {
		font-size: 1.1rem; /* Slightly smaller font */
		font-weight: 500;
		padding: 12px 20px; /* Further reduced padding for more compact look */
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 12px; /* Smaller radius */
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(255, 255, 255, 0.1);
		transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		text-decoration: none;
		color: var(--text-primary);
		position: relative;
		overflow: hidden;
	}

	.mobile-menu .nav-link i {
		margin-right: 10px;
		font-size: 1rem;
		color: var(--primary-color);
		transition: all 0.3s ease;
	}

	.mobile-menu .nav-link:hover i {
		transform: scale(1.2);
		color: white;
	}

	.mobile-menu .nav-link::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(
			135deg,
			var(--primary-color),
			var(--secondary-color)
		);
		transition: left 0.4s ease;
		z-index: -1;
	}

	.mobile-menu .nav-link:hover {
		background: transparent;
		color: white;
		transform: translateY(-4px) scale(1.05);
		box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4),
			0 5px 15px rgba(74, 144, 226, 0.3);
		border-color: rgba(255, 255, 255, 0.3);
	}

	.mobile-menu .nav-link:hover::before {
		left: 0;
	}
	.nav-menu.active li:nth-child(5) {
		animation-delay: 0.3s;
	}
	.nav-menu.active li:nth-child(6) {
		animation-delay: 0.35s;
	}

	.nav-link {
		font-size: 1.3rem;
		font-weight: 500;
		padding: 18px 32px;
		width: 100%;
		display: block;
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(255, 255, 255, 0.1);
		transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		text-decoration: none;
		color: var(--text-primary);
		position: relative;
		overflow: hidden;
	}

	.nav-link::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(
			135deg,
			var(--primary-color),
			var(--secondary-color)
		);
		transition: left 0.4s ease;
		z-index: -1;
	}

	.nav-link:hover {
		background: transparent;
		color: white;
		transform: translateY(-4px) scale(1.05);
		box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4),
			0 5px 15px rgba(74, 144, 226, 0.3);
		border-color: rgba(255, 255, 255, 0.3);
	}

	.nav-link:hover::before {
		left: 0;
	}

	.hamburger {
		display: flex;
		z-index: 10001;
		position: relative;
	}

	.hamburger.active {
		background: rgba(79, 70, 229, 0.2);
		border-color: var(--primary-color);
		box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
	}

	/* Hamburger transformation styles are defined in the main section */

	/* Add glassmorphism overlay when menu is open */
	.nav-menu.active::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(5px);
		z-index: -1;
		animation: fadeIn 0.3s ease;
	}

	/* Close button area for better UX */
	.nav-menu.active::after {
		content: '';
		position: absolute;
		top: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 50%;
		border: 1px solid rgba(255, 255, 255, 0.2);
		backdrop-filter: blur(10px);
	}
}

/* Add slideIn and fadeInUp animations for mobile menu */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Add fadeIn animation for smooth entrance */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Additional mobile menu enhancements */
@media (max-width: 768px) {
	.nav-menu {
		padding: 1.5rem;
	}

	.nav-menu li {
		margin: 0.8rem 0;
		max-width: 280px;
	}

	.nav-link {
		font-size: 1.1rem;
		padding: 14px 24px;
		font-weight: 400;
	}
}

@media (max-width: 480px) {
	.nav-menu {
		padding: 1rem;
	}

	.nav-menu li {
		margin: 0.6rem 0;
		max-width: 260px;
	}

	.nav-link {
		font-size: 1rem;
		padding: 12px 20px;
	}

	/* Adjust hamburger size for smaller screens */
	.hamburger {
		width: 26px;
		height: 26px;
	}

	.hamburger span {
		height: 2px;
	}
}

/* Responsive Design */
/* Responsive Design */

/* Large Desktop (1440px and up) */
@media (min-width: 1441px) {
	.container {
		max-width: 1400px;
	}

	.hero-title {
		font-size: 5rem;
	}

	.section-title {
		font-size: 3.5rem;
	}
}

/* Standard Desktop (1200px - 1440px) */
@media (max-width: 1440px) {
	.container {
		max-width: 1200px;
	}
}

/* Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) {
	.container {
		max-width: 960px;
		padding: 0 24px;
	}

	.navbar {
		width: calc(95% - 40px);
		padding: 14px 24px;
	}

	.hero-title {
		font-size: 3.8rem;
	}

	.hero-subtitle {
		font-size: 2rem;
	}

	.section-title {
		font-size: 2.8rem;
	}

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

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

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
	.container {
		max-width: 100%;
		padding: 0 20px;
	}

	.navbar {
		width: 95%;
		padding: 12px 20px;
	}

	.hamburger {
		display: flex;
	}

	.nav-controls {
		gap: 0.8rem;
	}

	.hero {
		padding: 120px 20px 60px;
	}

	.hero-content {
		grid-template-columns: 1fr;
		gap: 3rem;
		text-align: center;
	}

	.hero-title {
		font-size: 3.2rem;
	}

	.hero-subtitle {
		font-size: 1.8rem;
	}

	.hero-description {
		font-size: 1.2rem;
		max-width: 100%;
	}

	.hero-buttons {
		flex-direction: row;
		justify-content: center;
		gap: 1rem;
	}

	.hero-stats {
		justify-content: center;
		gap: 2.5rem;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

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

	.projects-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.resume-header {
		flex-direction: column;
		text-align: center;
		gap: 2rem;
	}

	.resume-actions {
		flex-direction: row;
		justify-content: center;
		gap: 1rem;
	}

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

	.contact-content {
		flex-direction: column;
		align-items: center;
	}

	.contact-info-center {
		max-width: 100%;
	}

	.footer-content {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	section {
		padding: 60px 0;
	}

	.section-title {
		font-size: 2.5rem;
	}

	.section-subtitle {
		font-size: 1.1rem;
	}
}

/* Mobile Landscape (480px - 767px) */
@media (max-width: 767px) {
	.navbar {
		width: calc(100% - 24px);
		left: 12px;
		transform: translateX(0);
		padding: 10px 16px;
	}

	.nav-container {
		gap: 1rem;
	}

	.logo h2 {
		font-size: 1.3rem;
	}

	.theme-toggle {
		padding: 8px;
		font-size: 1rem;
	}

	.hero {
		min-height: 90vh;
		padding: 100px 16px 40px;
	}

	.hero-content {
		gap: 2rem;
	}

	.hero-title {
		font-size: 2.8rem;
		line-height: 1.1;
	}

	.highlight {
		font-size: 2.2rem;
	}

	.hero-subtitle {
		font-size: 1.6rem;
	}

	.hero-description {
		font-size: 1.1rem;
		line-height: 1.6;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 0.8rem;
		width: 100%;
	}

	.btn {
		padding: 14px 24px;
		width: 100%;
		justify-content: center;
	}

	.hero-stats {
		gap: 1.5rem;
		flex-wrap: wrap;
	}

	.stat {
		min-width: 80px;
	}

	.stat-number {
		font-size: 1.6rem;
	}

	.stat-label {
		font-size: 0.8rem;
	}

	.profile-card {
		padding: 1.5rem;
	}

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

	.profile-ring {
		width: 116px;
		height: 116px;
		top: -8px;
		left: -8px;
	}

	.container {
		padding: 0 16px;
	}

	section {
		padding: 50px 0;
	}

	.section-header {
		margin-bottom: 3rem;
	}

	.section-title {
		font-size: 2.2rem;
	}

	.section-subtitle {
		font-size: 1rem;
	}

	.text-card {
		padding: 2rem;
	}

	.text-card h3 {
		font-size: 1.3rem;
	}

	.about-highlights {
		gap: 1rem;
	}

	.highlight-card {
		padding: 1.5rem;
	}

	.highlight-icon {
		font-size: 2rem;
	}

	.highlight-card h4 {
		font-size: 1.1rem;
	}

	.skills-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.skill-category {
		padding: 2rem;
	}

	.skill-category h3 {
		font-size: 1.2rem;
		margin-bottom: 1.5rem;
	}

	.skill-items {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.skill-item {
		padding: 0.8rem 1rem;
	}

	.project-card {
		padding: 2rem;
	}

	.project-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.project-links {
		align-self: flex-end;
	}

	.project-content h3 {
		font-size: 1.2rem;
	}

	.project-content p {
		font-size: 0.95rem;
	}

	.project-features {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.tech-tag {
		font-size: 0.75rem;
		padding: 3px 10px;
	}

	.resume-card {
		padding: 2rem;
	}

	.resume-info h3 {
		font-size: 1.5rem;
	}

	.resume-info p {
		font-size: 1rem;
	}

	.resume-actions {
		flex-direction: column;
		width: 100%;
	}

	.achievements-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.achievement-card {
		padding: 1.8rem;
	}

	.achievement-icon {
		font-size: 2.5rem;
	}

	.achievement-card h4 {
		font-size: 1.2rem;
	}

	.contact-card {
		padding: 2rem;
	}

	.contact-card h3 {
		font-size: 1.3rem;
	}

	.contact-methods {
		gap: 0.8rem;
	}

	.contact-method {
		padding: 0.8rem;
		font-size: 0.95rem;
	}

	.footer {
		padding: 1.5rem 0;
	}

	.footer-content {
		gap: 1rem;
	}

	.footer-text {
		font-size: 0.9rem;
	}
}

/* Mobile Portrait (320px - 479px) */
@media (max-width: 479px) {
	.navbar {
		width: calc(100% - 16px);
		left: 8px;
		top: 10px; /* Moved slightly up to give more space to the header content */
		padding: 8px 12px;
		border-radius: 16px;
	}

	.logo h2 {
		font-size: 1.2rem;
	}

	.theme-toggle {
		padding: 6px;
		font-size: 0.9rem;
	}

	.hamburger span {
		width: 20px;
		height: 2px;
	}

	.hero {
		padding: 120px 12px 30px; /* Increased top padding to prevent overlap with navbar */
		min-height: 85vh;
	}

	.hero-title {
		font-size: 2.2rem;
	}

	.highlight {
		font-size: 1.8rem;
		margin-bottom: 0.5rem;
	}

	.hero-subtitle {
		font-size: 1.4rem;
		margin-bottom: 2rem;
	}

	.hero-description {
		font-size: 1rem;
		margin-bottom: 2.5rem;
	}

	.hero-stats {
		gap: 1rem;
	}

	.stat-number {
		font-size: 1.4rem;
	}

	.stat-label {
		font-size: 0.75rem;
	}

	.profile-card {
		padding: 1.2rem;
	}

	.profile-image img {
		width: 80px;
		height: 80px;
	}

	.profile-ring {
		width: 96px;
		height: 96px;
	}

	.profile-info h3 {
		font-size: 1.1rem;
	}

	.profile-info p {
		font-size: 0.85rem;
	}

	.badge {
		font-size: 0.7rem;
		padding: 3px 8px;
	}

	.container {
		padding: 0 12px;
	}

	section {
		padding: 40px 0;
	}

	.section-title {
		font-size: 1.8rem;
		line-height: 1.2;
	}

	.section-subtitle {
		font-size: 0.9rem;
	}

	.section-header {
		margin-bottom: 2.5rem;
	}

	.text-card {
		padding: 1.5rem;
	}

	.text-card h3 {
		font-size: 1.2rem;
	}

	.text-card p {
		font-size: 0.9rem;
	}

	.highlight-card {
		padding: 1.2rem;
	}

	.highlight-icon {
		font-size: 1.8rem;
	}

	.highlight-card h4 {
		font-size: 1rem;
	}

	.highlight-card p {
		font-size: 0.85rem;
	}

	.skill-category {
		padding: 1.5rem;
	}

	.skill-category h3 {
		font-size: 1.1rem;
		margin-bottom: 1.2rem;
	}

	.skill-item {
		padding: 0.7rem 0.8rem;
		font-size: 0.9rem;
	}

	.skill-item i {
		font-size: 1rem;
	}

	.project-card {
		padding: 1.5rem;
	}

	.project-icon {
		font-size: 2rem;
	}

	.project-link {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
	}

	.project-content h3 {
		font-size: 1.1rem;
		line-height: 1.3;
	}

	.project-content p {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.tech-tag {
		font-size: 0.7rem;
		padding: 2px 8px;
	}

	.dev-tag,
	.deployed-tag {
		font-size: 0.6rem;
		padding: 1px 6px;
		margin-left: 0.3rem;
	}

	.feature {
		font-size: 0.8rem;
	}

	.feature i {
		font-size: 0.7rem;
	}

	.resume-card {
		padding: 1.5rem;
	}

	.resume-info h3 {
		font-size: 1.3rem;
	}

	.resume-info p {
		font-size: 0.9rem;
	}

	.btn {
		padding: 12px 20px;
		font-size: 0.9rem;
	}

	.achievement-card {
		padding: 1.5rem;
	}

	.achievement-icon {
		font-size: 2.2rem;
	}

	.achievement-card h4 {
		font-size: 1.1rem;
	}

	.achievement-card p {
		font-size: 0.9rem;
	}

	.achievement-link {
		font-size: 0.9rem;
		padding: 0.4rem 0.8rem;
	}

	.contact-card {
		padding: 1.5rem;
	}

	.contact-card h3 {
		font-size: 1.2rem;
	}

	.contact-card p {
		font-size: 0.9rem;
	}

	.contact-method {
		padding: 0.7rem;
		font-size: 0.9rem;
		gap: 0.8rem;
	}

	.contact-method i {
		font-size: 1.1rem;
	}

	.footer-text {
		font-size: 0.8rem;
	}

	.footer-links a {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
	}
}

/* Extra Small Devices (below 320px) */
@media (max-width: 319px) {
	.hero-title {
		font-size: 1.8rem;
	}

	.highlight {
		font-size: 1.5rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	.section-title {
		font-size: 1.6rem;
	}

	.container {
		padding: 0 8px;
	}

	.navbar {
		width: calc(100% - 12px);
		left: 6px;
		padding: 6px 10px;
	}

	.skill-items {
		gap: 0.5rem;
	}

	.hero-stats {
		flex-direction: column;
		gap: 0.8rem;
	}
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
	.hero {
		min-height: 100vh;
		padding: 100px 20px 40px;
	}

	.hero-content {
		gap: 1.5rem;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-subtitle {
		font-size: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.hero-description {
		margin-bottom: 2rem;
	}

	.hero-stats {
		gap: 1rem;
	}

	section {
		padding: 40px 0;
	}
}

/* Scrollbar Styling */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--secondary-color);
}

/* Selection Styling */
::selection {
	background: var(--primary-color);
	color: white;
}

/* Loading Animation */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Smooth scrolling for older browsers */
html {
	scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Keyboard navigation styles */
.keyboard-navigation *:focus {
	outline: 2px solid var(--primary-color) !important;
	outline-offset: 2px !important;
}

/* Skip link for screen readers */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--primary-color);
	color: white;
	padding: 8px;
	text-decoration: none;
	z-index: 10000;
	border-radius: 4px;
}

.skip-link:focus {
	top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--bg-glass: rgba(0, 0, 0, 0.8);
		--border-glass: rgba(255, 255, 255, 0.5);
	}

	[data-theme='dark'] {
		--bg-glass: rgba(255, 255, 255, 0.8);
		--border-glass: rgba(0, 0, 0, 0.5);
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Dark mode transition */
* {
	transition: background-color 0.3s ease, color 0.3s ease,
		border-color 0.3s ease;
}

/* Additional Responsive Enhancements */

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
	.btn,
	.nav-link,
	.contact-method,
	.achievement-link,
	.project-link {
		min-height: 44px;
		min-width: 44px;
	}

	.theme-toggle {
		min-height: 44px;
		min-width: 44px;
	}

	.hamburger {
		min-height: 44px;
		min-width: 44px;
		justify-content: center;
		align-items: center;
	}
}

/* Improved mobile menu animations */
@media (max-width: 1024px) {
	.nav-menu.active li {
		animation: slideInFromRight 0.5s ease forwards;
	}

	.nav-menu.active li:nth-child(1) {
		animation-delay: 0.1s;
	}
	.nav-menu.active li:nth-child(2) {
		animation-delay: 0.2s;
	}
	.nav-menu.active li:nth-child(3) {
		animation-delay: 0.3s;
	}
	.nav-menu.active li:nth-child(4) {
		animation-delay: 0.4s;
	}
	.nav-menu.active li:nth-child(5) {
		animation-delay: 0.5s;
	}
	.nav-menu.active li:nth-child(6) {
		animation-delay: 0.6s;
	}
}

@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Container max-width improvements */
@media (min-width: 1600px) {
	.container {
		max-width: 1500px;
	}
}

/* Better spacing for very small screens */
@media (max-width: 360px) {
	.hero-title {
		font-size: 2rem;
		line-height: 1.2;
	}

	.highlight {
		font-size: 1.6rem;
	}

	.hero-subtitle {
		font-size: 1.3rem;
	}

	.btn {
		padding: 10px 16px;
		font-size: 0.85rem;
	}

	.nav-link {
		font-size: 1rem;
		padding: 10px 20px;
	}
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
	.floating-shapes {
		display: none; /* Hide complex animations on mobile for better performance */
	}

	.shape {
		display: none;
	}

	/* Reduce backdrop blur on mobile for better performance */
	.glass {
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}
}

/* Safe area adjustments for devices with notches */
@supports (padding: max(0px)) {
	.navbar {
		padding-left: max(16px, env(safe-area-inset-left));
		padding-right: max(16px, env(safe-area-inset-right));
	}

	.container {
		padding-left: max(20px, env(safe-area-inset-left));
		padding-right: max(20px, env(safe-area-inset-right));
	}

	.hero {
		padding-left: max(20px, env(safe-area-inset-left));
		padding-right: max(20px, env(safe-area-inset-right));
	}
}

/* Hover states for desktop only */
@media (hover: hover) and (pointer: fine) {
	.project-card:hover {
		transform: translateY(-12px) scale(1.02);
	}

	.skill-category:hover {
		transform: translateY(-8px) scale(1.02);
	}

	.achievement-card:hover {
		transform: translateY(-8px) scale(1.02);
	}
}

/* Remove hover effects on touch devices */
@media (hover: none) {
	.project-card:hover,
	.skill-category:hover,
	.achievement-card:hover {
		transform: none;
	}

	.btn:hover {
		transform: none;
	}

	.nav-link:hover {
		transform: none;
	}
}

/* Print styles */
@media print {
	.navbar,
	.hamburger,
	.theme-toggle,
	.floating-shapes,
	.background {
		display: none !important;
	}

	.hero {
		padding-top: 0;
		min-height: auto;
	}

	.glass {
		background: white !important;
		border: 1px solid #e5e7eb !important;
		box-shadow: none !important;
		backdrop-filter: none !important;
	}

	* {
		background: white !important;
		color: black !important;
	}

	.hero-title,
	.section-title {
		color: #1f2937 !important;
	}
}

/* Improved readability on small screens */

/* ===== LIGHT THEME ENHANCEMENTS ===== */

/* Additional light theme enhancements for headings */
[data-theme='light'] h1,
[data-theme='light'] h2,
[data-theme='light'] h3 {
	color: #0f172a;
	letter-spacing: -0.02em;
}

[data-theme='light'] .section-title {
	background: linear-gradient(135deg, #4338ca, #6d28d9);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	position: relative;
}

[data-theme='light'] .section-subtitle {
	color: #475569;
}

/* Enhanced card styles for light theme */
[data-theme='light'] .project-card,
[data-theme='light'] .skill-category,
[data-theme='light'] .highlight-card,
[data-theme='light'] .contact-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(25px) saturate(180%) brightness(115%);
	-webkit-backdrop-filter: blur(25px) saturate(180%) brightness(115%);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06),
		0 4px 16px rgba(15, 23, 42, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .project-card:hover,
[data-theme='light'] .skill-category:hover,
[data-theme='light'] .highlight-card:hover,
[data-theme='light'] .contact-card:hover {
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(30px) saturate(200%) brightness(125%);
	-webkit-backdrop-filter: blur(30px) saturate(200%) brightness(125%);
	border-color: rgba(79, 70, 229, 0.3);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1),
		0 6px 20px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 0 0 1px rgba(255, 255, 255, 0.2);
} /* Enhanced skill icons for light theme */
[data-theme='light'] .skill-item i {
	color: #4338ca;
	text-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* Enhanced form fields for light theme */
[data-theme='light'] input,
[data-theme='light'] textarea {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(203, 213, 225, 0.6);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	color: #1e293b;
}

[data-theme='light'] input:focus,
[data-theme='light'] textarea:focus {
	border-color: rgba(79, 70, 229, 0.4);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Enhanced scrollbar for light theme */
[data-theme='light'] ::-webkit-scrollbar-track {
	background: #f1f5f9;
}

[data-theme='light'] ::-webkit-scrollbar-thumb {
	background: rgba(79, 70, 229, 0.3);
	border: 3px solid #f1f5f9;
}

[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
	background: rgba(79, 70, 229, 0.5);
}

/* Additional light theme particle styles */
[data-theme='light'] .particles-js-canvas-el {
	opacity: 0.3;
}

/* Enhanced text visibility for light theme */
[data-theme='light'] .hero-description,
[data-theme='light'] p:not(.glass p),
[data-theme='light'] .hero-text p {
	color: #374151;
	text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
	font-weight: 500;
}

[data-theme='light'] .hero-title {
	color: #111827;
	text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

[data-theme='light'] .hero-subtitle {
	color: #4338ca;
	text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
@media (max-width: 480px) {
	.text-card p,
	.project-content p,
	.achievement-card p,
	.contact-card p {
		line-height: 1.6;
		font-size: 0.9rem;
	}

	.hero-description {
		line-height: 1.6;
	}
}
