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

/*
 * Smooth theme transition
 */
body,
nav,
footer,
section,
.education-card,
.experience-card,
.project-card,
.skill-category,
.contact-container,
.btn,
.theme-toggle {
	transition:
		background 0.4s ease,
		color 0.4s ease,
		border-color 0.4s ease,
		box-shadow 0.4s ease;
}

:root {
	--primary-color: #00d4ff;
	--secondary-color: #7c3aed;
	--accent-color: #ff6b6b;
	--dark-bg: #0a0a0f;
	--card-bg: #151521;
	--card-hover: #1a1a2e;
	--text-primary: #ffffff;
	--text-secondary: #b4b4c8;
	--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, #43e97b 0%, #38f9d7 100%);
}

/* Light theme variables */
[data-theme="light"] {
	--primary-color: #7c3aed;
	--secondary-color: #00b4d8;
	--accent-color: #ff6b6b;
	--dark-bg: #f9f9ff;
	--card-bg: #ffffff;
	--card-hover: #f0f0ff;
	--text-primary: #0a0a0f;
	--text-secondary: #555a7b;
	--gradient-1: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
	--gradient-2: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
	--gradient-3: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
	--gradient-4: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

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

/* Animated Background */
.bg-animation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	overflow: hidden;
}

.bg-animation::before {
	content: "";
	position: absolute;
	width: 200%;
	height: 200%;
	background:
		radial-gradient(
			circle at 20% 50%,
			rgba(120, 58, 237, 0.15) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(0, 212, 255, 0.15) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 40% 20%,
			rgba(255, 107, 107, 0.1) 0%,
			transparent 50%
		);
	animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(-50px, -50px);
	}
}

/* Scroll Progress Bar */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	background: var(--gradient-3);
	z-index: 9999;
	width: 0%;
	transition: width 0.1s linear;
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(21, 21, 33, 0.8);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 1rem 0;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: 800;
	background: var(--gradient-3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
}

.logo-circle {
	background: none;
	-webkit-background-clip: unset;
	-webkit-text-fill-color: unset;
	background-clip: unset;
	display: flex;
	align-items: center;
	transition:
		transform 0.3s ease,
		filter 0.3s ease;
}

.logo-circle:hover {
	transform: rotate(10deg) scale(1.08);
	filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.6));
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.nav-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s ease;
}

/* Active navigation link */
.nav-links a.active {
	color: var(--primary-color);
}

.nav-links a.active::after {
	width: 100%;
}

.nav-links a:hover {
	color: var(--primary-color);
}

.nav-links a:hover::after {
	width: 100%;
}

/* Light theme adjustments for navigation text */
[data-theme="light"] .nav-links a {
	color: #ffffff;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
	color: var(--primary-color);
}

/* Theme toggle button */
.theme-toggle {
	margin-left: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--card-bg);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition:
		background 0.3s ease,
		transform 0.3s ease;
	color: var(--primary-color);
}

.theme-toggle:hover {
	transform: translateY(-3px);
	background: var(--card-hover);
}

.theme-toggle i {
	font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: var(--text-primary);
	transition: all 0.3s ease;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	position: relative;
}

.hero-content {
	text-align: center;
	max-width: 900px;
	animation: fadeInUp 1s ease;
}

/* Availability Badge */
.availability-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(67, 233, 123, 0.1);
	border: 1px solid rgba(67, 233, 123, 0.4);
	color: #43e97b;
	padding: 0.4rem 1.1rem;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.2rem;
	animation: fadeIn 0.8s ease;
}

.availability-badge .dot {
	width: 8px;
	height: 8px;
	background: #43e97b;
	border-radius: 50%;
	flex-shrink: 0;
	animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.75);
	}
}

.hero-greeting {
	font-size: 1.2rem;
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 1rem;
	animation: fadeIn 0.8s ease;
}

.hero-title {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1rem;
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
	font-size: 1.8rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	font-weight: 300;
	animation: fadeInUp 1s ease 0.4s backwards;
	min-height: 2.2rem;
}

/* Blinking cursor for typewriter */
.typing-cursor {
	display: inline;
	font-weight: 100;
	color: #00d4ff; /* match your accent color */
	animation: blink 0.8s step-end infinite;
	margin-left: 1px;
}

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

.hero-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 2.5rem;
	line-height: 1.8;
	animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 1s ease 0.8s backwards;
}

.btn {
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-primary {
	background: var(--gradient-3);
	color: var(--text-primary);
	box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
	background: transparent;
	color: var(--text-primary);
	border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
	background: var(--primary-color);
	transform: translateY(-3px);
}

.social-links {
	margin-top: 2rem;
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	animation: fadeInUp 1s ease 1s backwards;
}

.social-links a {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--card-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
	font-size: 1.3rem;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.social-links a:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
	background: var(--card-hover);
}

/* Section Styles */
section {
	padding: 6rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 800;
	text-align: center;
	margin-bottom: 1rem;
	position: relative;
	display: inline-block;
	left: 50%;
	transform: translateX(-50%);
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--gradient-3);
	border-radius: 2px;
}

.section-subtitle {
	text-align: center;
	color: var(--text-secondary);
	margin-bottom: 4rem;
	font-size: 1.1rem;
}

/* Stats Section */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-top: 4rem;
}

.stat-card {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 20px;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.stat-card:hover {
	transform: translateY(-10px);
	border-color: var(--primary-color);
	box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
}

.stat-number {
	font-size: 3rem;
	font-weight: 800;
	background: var(--gradient-3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
	margin-bottom: 0.5rem;
}

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

/* Experience Section */
.experience-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.experience-card {
	background: var(--card-bg);
	padding: 2.5rem;
	border-radius: 20px;
	border-left: 4px solid var(--primary-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.experience-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-3);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.experience-card:hover::before {
	opacity: 0.05;
}

.experience-card:hover {
	transform: translateX(10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.experience-card > * {
	position: relative;
	z-index: 1;
}

.experience-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.experience-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.experience-company {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.experience-meta {
	display: flex;
	gap: 1.5rem;
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.experience-meta i {
	color: var(--primary-color);
	margin-right: 0.3rem;
}

.experience-description {
	list-style: none;
	margin-top: 1rem;
}

.experience-description li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	color: var(--text-secondary);
	line-height: 1.8;
}

.experience-description li::before {
	content: "▹";
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: bold;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tech-tag {
	background: rgba(0, 212, 255, 0.1);
	color: var(--primary-color);
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid rgba(0, 212, 255, 0.3);
}

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

.project-card {
	background: var(--card-bg);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
}

.project-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-1);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-card:hover {
	transform: translateY(-10px);
	border-color: var(--primary-color);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.project-icon {
	padding: 2rem;
	font-size: 3rem;
	text-align: center;
	background: var(--gradient-1);
	position: relative;
}

.project-card:nth-child(2) .project-icon {
	background: var(--gradient-2);
}

.project-card:nth-child(3) .project-icon {
	background: var(--gradient-3);
}

.project-card:nth-child(4) .project-icon {
	background: var(--gradient-4);
}

.project-content {
	padding: 2rem;
	position: relative;
	z-index: 1;
}

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

.project-date {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

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

.project-highlights {
	list-style: none;
	margin: 1rem 0;
}

.project-highlights li {
	padding: 0.3rem 0;
	padding-left: 1.5rem;
	position: relative;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.project-highlights li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: bold;
}

/* View More button */
.view-more-btn {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.75rem 1.5rem;
	background: var(--gradient-2);
	color: var(--text-primary);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	text-decoration: none;
}

.view-more-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Side panel for project details */
.project-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 30%;
	max-width: 400px;
	height: 100vh;
	padding: 2rem;
	background: var(--card-bg);
	z-index: 1001;
	transform: translateX(100%);
	transition: transform 0.4s ease;
	border-left: 2px solid var(--primary-color);
	overflow-y: auto;
}

.project-panel.open {
	transform: translateX(0);
}

.close-panel {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 1.5rem;
	cursor: pointer;
}

.panel-title {
	font-size: 1.7rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

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

.panel-extra a {
	color: var(--primary-color);
	text-decoration: none;
}

/* ── Panel extra cards: theme-aware overrides ───────────────────────────── */
.panel-extra .card-label {
	color: var(--text-secondary);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 6px;
}

.panel-extra .media-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

[data-theme="dark"] .panel-extra .media-card {
	border-color: rgba(255, 255, 255, 0.1);
}

.panel-extra .media-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.panel-extra .media-caption {
	background: rgba(0, 0, 0, 0.04);
	padding: 10px 18px;
	color: var(--text-secondary);
	font-size: 12px;
}

[data-theme="dark"] .panel-extra .media-caption {
	background: rgba(255, 255, 255, 0.04);
}

.panel-extra .link-card {
	display: block;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

[data-theme="dark"] .panel-extra .link-card {
	border-color: rgba(255, 255, 255, 0.1);
}

.panel-extra .link-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.panel-extra .link-card-header {
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.panel-extra .link-card-header span {
	font-weight: 600;
	font-size: 13px;
	color: var(--text-primary);
}

.panel-extra .link-card-footer {
	background: rgba(0, 0, 0, 0.04);
	padding: 10px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

[data-theme="dark"] .panel-extra .link-card-footer {
	background: rgba(255, 255, 255, 0.04);
}

.panel-extra .link-card-footer .caption {
	color: var(--text-secondary);
	font-size: 12px;
}

.panel-extra .link-card-footer .cta {
	color: var(--primary-color);
	font-size: 12px;
	white-space: nowrap;
	margin-left: 10px;
}

.panel-extra .github-card-header {
	background: rgba(0, 0, 0, 0.06);
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

[data-theme="dark"] .panel-extra .github-card-header {
	background: rgba(255, 255, 255, 0.06);
}

.panel-extra .github-card-header svg {
	fill: var(--text-primary);
}

.panel-extra .github-card-header .repo-name {
	font-weight: 600;
	font-size: 13px;
	color: var(--text-primary);
}

.panel-extra .github-card-header .repo-cta {
	color: var(--primary-color);
	font-size: 12px;
	margin-left: auto;
}

/* When panel is open shift projects to make space */
.projects-grid.shifted {
	margin-right: 35%;
	transition: margin 0.4s ease;
}

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

.skill-category {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 20px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.skill-category:hover {
	border-color: var(--primary-color);
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.skill-category-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.skill-category-title i {
	color: var(--primary-color);
}

.skill-items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.skill-item {
	background: rgba(124, 58, 237, 0.1);
	color: var(--text-primary);
	padding: 0.6rem 1.2rem;
	border-radius: 25px;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid rgba(124, 58, 237, 0.3);
	transition: all 0.3s ease;
}

.skill-item:hover {
	background: rgba(124, 58, 237, 0.2);
	transform: scale(1.05);
	border-color: var(--secondary-color);
}

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

.education-card {
	background: var(--card-bg);
	padding: 2.5rem;
	border-radius: 20px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.education-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 150px;
	height: 150px;
	background: var(--gradient-1);
	border-radius: 50%;
	opacity: 0.1;
	transform: translate(50%, -50%);
}

.education-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.education-card > * {
	position: relative;
	z-index: 1;
}

.education-degree {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.education-school {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.education-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.education-gpa {
	background: var(--gradient-3);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	font-size: 1rem;
}

.education-date {
	color: var(--text-secondary);
}

.education-location {
	color: var(--text-secondary);
	margin-top: 0.5rem;
}

/* Contact Section */
.contact-container {
	background: var(--card-bg);
	padding: 4rem;
	border-radius: 30px;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.contact-container:hover {
	border-color: var(--primary-color);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

.contact-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.contact-info {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: 1rem;
}

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

.contact-item a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-item a:hover {
	color: var(--primary-color);
}

/* Footer */
footer {
	background: var(--card-bg);
	padding: 2rem;
	text-align: center;
	color: var(--text-secondary);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

/* Scroll Animation Class */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.animate-on-scroll.animated {
	opacity: 1;
	transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gradient-3);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0a0a0f;
	font-size: 1.1rem;
	box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		box-shadow 0.3s ease;
	z-index: 998;
}

.back-to-top.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.back-to-top:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-links {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 70px);
		background: rgba(21, 21, 33, 0.98);
		flex-direction: column;
		align-items: center;
		justify-content: center;
		transition: left 0.3s ease;
	}

	.nav-links.active {
		left: 0;
	}

	.menu-toggle {
		display: flex;
	}

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

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

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

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

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

	.contact-container {
		padding: 2rem;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.back-to-top {
		bottom: 1.5rem;
		right: 1.5rem;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

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

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

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

/* ── Cursor Toggle Button ─────────────────────────────────────────────────── */
.cursor-toggle.cursor-off {
	opacity: 0.45;
	position: relative;
}
/* Strikethrough diagonal line when off */
.cursor-toggle.cursor-off::before {
	content: "";
	position: absolute;
	width: 2px;
	height: 26px;
	background: var(--accent-color);
	border-radius: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	pointer-events: none;
}

/* ── Custom Cursor ────────────────────────────────────────────────────────── */
/* Only hide native cursor when custom cursor is explicitly active */
html.custom-cursor-active,
html.custom-cursor-active * {
	cursor: none !important;
}

.cursor-dot {
	position: fixed;
	width: 8px;
	height: 8px;
	background: var(--primary-color);
	border-radius: 50%;
	pointer-events: none;
	z-index: 99999;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 8px var(--primary-color);
	opacity: 0;
	transition:
		opacity 0.2s ease,
		width 0.2s ease,
		height 0.2s ease;
}

.cursor-ring {
	position: fixed;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--primary-color);
	border-radius: 50%;
	pointer-events: none;
	z-index: 99998;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition:
		opacity 0.25s ease,
		width 0.25s ease,
		height 0.25s ease,
		border-color 0.25s ease;
}

/* Hover: ring expands and shifts color, dot shrinks */
html.custom-cursor-active body.cursor-hover .cursor-dot {
	width: 4px;
	height: 4px;
	opacity: 0.5;
}
html.custom-cursor-active body.cursor-hover .cursor-ring {
	width: 52px;
	height: 52px;
	opacity: 1;
	border-color: var(--secondary-color);
}

/* Click: ring contracts fast */
html.custom-cursor-active body.cursor-click .cursor-ring {
	width: 24px;
	height: 24px;
	opacity: 1;
	transition:
		width 0.08s ease,
		height 0.08s ease;
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--primary-color);
	color: #0a0a0f;
	padding: 0.6rem 1.2rem;
	border-radius: 0 0 8px 8px;
	font-weight: 700;
	font-size: 0.9rem;
	z-index: 10000;
	text-decoration: none;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 0;
}

/* Focus states */
:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Button ripple */
.btn {
	position: relative;
	overflow: hidden;
}
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.15);
	opacity: 0;
	border-radius: inherit;
	transition: opacity 0.2s ease;
}
.btn:active::after {
	opacity: 1;
}

/* Close panel spin */
.close-panel {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}
.close-panel:hover {
	background: rgba(255, 107, 107, 0.15);
	color: var(--accent-color);
	transform: rotate(90deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.cursor-dot,
	.cursor-ring {
		display: none !important;
	}
}

/* Print */
@media print {
	nav,
	.scroll-progress,
	.bg-animation,
	.back-to-top,
	.project-panel,
	.theme-toggle,
	.cursor-toggle,
	.cursor-dot,
	.cursor-ring {
		display: none !important;
	}
	body {
		background: white;
		color: black;
	}
}
