/* ======================= GENERAL STYLES & VARIABLES ======================= */
:root {
	--primary-color: #ffffff;
	--background-color: #000000;
	--glass-bg: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
	--text-color: #e0e0e0;
	--heading-color: #ffffff;
	--hover-glass-bg: rgba(255, 255, 255, 0.1);
	--hover-glass-border: rgba(255, 255, 255, 0.3);
	--shape-color-1: rgba(255, 255, 255, 0.08);
	--shape-color-2: rgba(255, 255, 255, 0.06);
	--nav-bg: rgba(20, 20, 20, 0.5);
	--footer-bg: rgba(10, 10, 10, 0.3);
	--muted-text: #a0a0a0;
	--font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* Decorative background shapes */
body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -1;
	border-radius: 50%;
	filter: blur(150px);
	transition: all 0.5s ease;
}

body::before {
	width: 400px;
	height: 400px;
	background: var(--shape-color-1);
	top: -10%;
	left: -10%;
}

body::after {
	width: 500px;
	height: 500px;
	background: var(--shape-color-2);
	bottom: -15%;
	right: -15%;
}

h1,
h2,
h3,
h4 {
	color: var(--heading-color);
	font-weight: 600;
	transition: color 0.3s ease;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
}

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

/* ======================= HEADER / NAVIGATION ======================= */
header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	background: var(--nav-bg);
	backdrop-filter: blur(10px);
	padding: 1rem 5%;
	border-bottom: 1px solid var(--glass-border);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

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

.nav-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* ======================= (rest of your CSS stays unchanged) ======================= */

/* ... keep all your existing project, skills, footer, cursor, responsive styles ... */

/* Improvement: Styles for the new hamburger menu */
.hamburger {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
}

.hamburger .bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: var(--primary-color);
	transition: all 0.3s ease-in-out;
}

/* ======================= SECTIONS ======================= */
.content-section {
	padding: 8rem 5% 6rem;
	max-width: 1200px;
	margin: 0 auto;
}

.intro-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 5%;
}

.intro-content h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.intro-content p {
	font-size: 1.2rem;
	max-width: 650px;
	margin: 0 auto 1.5rem auto;
	font-weight: 300;
}

.social-links {
	margin-top: 2rem;
}
.social-links a {
	margin: 0 0.5rem;
	font-weight: 500;
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	background: var(--glass-bg);
	transition: all 0.3s ease;
	display: inline-block;
}

.social-links a:hover {
	background: var(--hover-glass-bg);
	border-color: var(--hover-glass-border);
	transform: translateY(-3px);
}

.line-1 span {
	display: inline-block;
}

/* ======================= PROJECTS & SKILLS CARDS (GLASSMORPHISM) ======================= */
.project-container,
.skills-grid {
	display: grid;
	gap: 2rem;
	align-items: start; /* FIX: Ensures cards align at the top */
}

.project-container {
	grid-template-columns: repeat(2, 1fr); /* FIX: Was auto-fit */
}
.skills-grid {
	grid-template-columns: repeat(2, 1fr);
	text-align: center;
}

.project-card,
.skill-category {
	background: var(--glass-bg);
	backdrop-filter: blur(15px);
	border: 1px solid var(--glass-border);
	padding: 2rem;
	border-radius: 16px;
	transition: background-color 0.3s ease, border-color 0.3s ease,
		transform 0.3s ease;
}

/* Performance/Maintainability Fix: Replaced JS hover with CSS hover */
.project-card:hover {
	transform: translateY(-10px) scale(1.03);
	background: var(--hover-glass-bg);
	border-color: var(--hover-glass-border);
}

.project-card h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.project-tech {
	font-style: italic;
	color: var(--muted-text);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.project-card ul {
	list-style-position: inside;
	padding-left: 0;
}
.project-card li {
	margin-bottom: 0.5rem;
}
.skill-category h4 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

/* ======================= SCROLLING SKILLS MARQUEE ======================= */
.scrolling-skills {
	padding: 2rem 0 4rem 0;
	max-width: 100%;
}

.scroller {
	max-width: 100%;
	overflow: hidden;
	-webkit-mask: linear-gradient(
		90deg,
		transparent,
		white 20%,
		white 80%,
		transparent
	);
	mask: linear-gradient(
		90deg,
		transparent,
		white 20%,
		white 80%,
		transparent
	);
}

.scroller-inner {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	gap: 2rem;
	padding-block: 1rem;
}

.skill-item {
	padding: 0.8rem 1.5rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--text-color);
}

/* ======================= CONTACT / FOOTER ======================= */
footer {
	text-align: center;
	padding: 4rem 5% 2rem;
	border-top: 1px solid var(--glass-border);
	background: var(--footer-bg);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer .contact-info {
	margin: 1.5rem 0;
	display: inline-flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}
.copyright {
	margin-top: 2rem;
	font-size: 0.9rem;
	color: var(--muted-text);
}

/* ======================= CURSOR FOLLOWER ======================= */
.cursor-follower {
	position: fixed;
	width: 30px;
	height: 30px;
	border: 1px solid var(--primary-color);
	border-radius: 50%;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	mix-blend-mode: difference;
	display: none;
	transition: border-color 0.3s ease, transform 0.2s ease-out; /* Smoother follower */
}

@media (pointer: coarse) {
	.cursor-follower {
		display: none !important;
	}
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 768px) {
	nav {
		justify-content: flex-end;
	}

	/* FIX: Make grids single-column on mobile */
	.project-container,
	.skills-grid {
		grid-template-columns: 1fr;
	}

	.intro-content h1 {
		font-size: 2.5rem;
	}
	.intro-content p {
		font-size: 1rem;
	}
	h2 {
		font-size: 2rem;
	}
	.content-section {
		padding-top: 6rem;
	}

	/* Mobile Navigation Logic */
	.nav-links {
		position: fixed;
		top: 0;
		right: -100%; /* Start off-screen */
		width: 70%;
		height: 100vh;
		background: var(--nav-bg);
		backdrop-filter: blur(20px);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3rem;
		transition: right 0.4s ease-in-out;
	}

	.nav-links.active {
		right: 0; /* Slide in */
	}

	.nav-links a {
		font-size: 1.2rem;
	}

	.hamburger {
		display: block; /* Show hamburger on mobile */
	}

	/* Animate hamburger to an 'X' */
	.hamburger.active .bar:nth-child(2) {
		opacity: 0;
	}
	.hamburger.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.hamburger.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	body::before {
		width: 300px;
		height: 300px;
	}
	body::after {
		width: 300px;
		height: 300px;
		bottom: 5%;
		right: -20%;
	}
}

@media (max-width: 480px) {
	.intro-content h1 {
		font-size: 2.2rem;
	}
	.social-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.social-links a {
		width: 100%;
		max-width: 280px;
	}
	footer .contact-info {
		flex-direction: column;
		gap: 1rem;
	}
}

/* Critical Bug Fix: Removed the extra closing brace */
