:root{
	--bg: #0b0f14;
	--bg-2: #0e141b;
	--text: #e6edf3;
	--muted: #9fb0c3;
	--card: rgba(255,255,255,0.04);
	--border: rgba(255,255,255,0.08);
	--accent: #7c9eff;
	--accent-2: #22d3ee;
	--shadow: 0 10px 30px rgba(0,0,0,0.35);
	
	/* Mobile-safe spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	
	/* Responsive text sizes */
	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.25rem;
	--text-2xl: 1.5rem;
	--text-3xl: 1.875rem;
	--text-4xl: 2.25rem;
}

*{ 
	box-sizing: border-box; 
}

/* Touch-friendly interactions */
.btn, .nav-item, .social, .carousel-btn, .chip {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Add visual feedback for carousel slides on touch */
.carousel-slide {
	-webkit-tap-highlight-color: rgba(124, 158, 255, 0.1);
}

.project-preview {
	-webkit-tap-highlight-color: rgba(124, 158, 255, 0.1);
}

html, body{
	min-height: 100vh;
	background: var(--bg);
	background-image: 
		radial-gradient(800px 400px at 10% 10%, rgba(124,158,255,0.08), transparent 50%),
		radial-gradient(600px 300px at 90% 30%, rgba(34,211,238,0.08), transparent 50%),
		linear-gradient(180deg, 
			rgba(124,158,255,0.06) 0%,
			rgba(34,211,238,0.04) 20%,
			rgba(124,158,255,0.03) 40%,
			rgba(34,211,238,0.04) 60%,
			rgba(124,158,255,0.06) 80%,
			rgba(34,211,238,0.05) 100%);
	background-attachment: local;
	background-size: 100% 100%, 100% 100%, 100% 100%;
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	line-height: 1.6;
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 0 env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right);
	padding-bottom: max(100px, env(safe-area-inset-bottom));
	overflow-x: hidden;
}

@media (max-width: 640px) {
	html {
		scroll-padding-top: 100px;
	}
}

main {
	background: transparent;
	margin: 0;
	padding: 0;
}

.container{
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--spacing-sm);
}

@media (min-width: 640px) {
	.container {
		padding: 0 var(--spacing-md);
	}
}

@media (min-width: 1024px) {
	.container {
		padding: 0 var(--spacing-lg);
	}
}

/* Remove section spacing and borders for seamless blending */
.section {
	margin: 0;
	padding: 48px 0;
	border: none;
	box-shadow: none;
}

.site-header{
	padding: var(--spacing-lg) 0 var(--spacing-sm);
	background: transparent;
	margin: 0;
	min-height: auto;
	text-align: center;
}

.name{
	font-size: var(--text-2xl);
	margin: 0 0 var(--spacing-xs) 0;
	letter-spacing: -0.02em;
	height: auto;
	min-height: 2em;
	line-height: 1.3;
}

@media (min-width: 640px) {
	.name {
		font-size: var(--text-3xl);
	}
}

@media (min-width: 768px) {
	.name {
		font-size: var(--text-4xl);
	}
	.site-header {
		text-align: left;
	}
}

.tagline{
	margin: 0 0 var(--spacing-md) 0;
	color: var(--muted);
	font-size: var(--text-base);
}

@media (max-width: 480px) {
	.tagline {
		font-size: var(--text-sm);
		text-align: center;
	}
}

.socials{ 
	display: flex; 
	gap: var(--spacing-xs); 
	flex-wrap: wrap; 
	justify-content: center;
	align-items: center;
}

@media (min-width: 768px) {
	.socials {
		justify-content: flex-start;
	}
}
.social{ 
	display: inline-flex; 
	align-items: center; 
	justify-content: center; 
	width: auto; 
	height: auto; 
	border-radius: 0; 
	border: none; 
	background: transparent; 
	text-decoration: none; 
	color: var(--text); 
	padding: 8px;
	transition: all 0.3s ease;
}
.social-icon{ 
	width: 28px; 
	height: 28px; 
	display: block; 
	fill: currentColor; 
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)); 
	transition: all 0.3s ease;
	object-fit: contain;
}

@media (max-width: 640px) {
	.social-icon {
		width: 32px;
		height: 32px;
	}
	
	.social {
		padding: var(--spacing-sm);
		min-width: 48px;
		min-height: 48px;
	}
}
.social--github{ color: #ffffff; }
.social--facebook{ color: #1877F2; }
.social--instagram .social-icon{ 
	fill: url(#instagramGradient); 
}
.social:hover{ 
	transform: translateY(-3px) scale(1.1); 
	filter: brightness(1.2); 
}
.social:hover .social-icon{ 
	filter: drop-shadow(0 6px 16px rgba(0,0,0,0.8)); 
}


.section--hero{ 
	padding: var(--spacing-md) 0; 
	min-height: auto;
	background: transparent;
	margin: 0;
	border-radius: 0;
}

@media (min-width: 768px) {
	.section--hero {
		padding: var(--spacing-xl) 0;
		min-height: 60vh;
	}
}

.hero-title{ 
	font-size: var(--text-lg);
	margin: 0 0 var(--spacing-xs) 0; 
	height: auto;
	min-height: 2.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.3;
}

@media (min-width: 640px) {
	.hero-title {
		font-size: var(--text-xl);
	}
}

@media (min-width: 768px) {
	.hero-title {
		font-size: var(--text-2xl);
		justify-content: flex-start;
	}
}

.hero-subtitle{ 
	color: var(--muted); 
	margin: 0 0 var(--spacing-md) 0; 
}

.hero-copy {
	min-height: auto;
	max-height: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: var(--spacing-sm);
	position: relative;
}

@media (min-width: 768px) {
	.hero-copy {
		align-items: flex-start;
		min-height: 240px;
		max-height: 240px;
		justify-content: space-between;
	}
}

.cta-group{ 
	display:flex; 
	gap: 12px; 
	flex-wrap: wrap; 
	margin-top: auto;
	position: relative;
}
.btn{ 
	appearance: none; 
	border: 1px solid var(--border); 
	color: var(--text); 
	background: rgba(255,255,255,0.02); 
	padding: var(--spacing-sm) var(--spacing-md); 
	border-radius: 10px; 
	text-decoration: none; 
	font-weight: 500;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	touch-action: manipulation;
}

@media (max-width: 640px) {
	.btn {
		font-size: var(--text-base);
		padding: var(--spacing-sm) var(--spacing-lg);
	}
}
.btn:hover{ border-color: rgba(255,255,255,0.16); }
.btn-primary{ background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #0b0f14; }
.btn-ghost{ background: transparent; }

.grid-2{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
@media (max-width: 800px){ .grid-2{ grid-template-columns: 1fr; } }

.stack{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.stack li{ background: var(--card); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; }

.projects{ 
	display: grid; 
	grid-template-columns: 1fr; 
	gap: var(--spacing-md); 
	justify-items: center;
}

@media (min-width: 768px) {
	.projects {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.projects {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card{ 
	background: rgba(13,17,23,0.66); 
	border: 1px solid var(--border); 
	border-radius: 14px; 
	padding: var(--spacing-md); 
	box-shadow: var(--shadow); 
	display: flex; 
	flex-direction: column; 
	justify-content: space-between; 
	min-height: 200px; 
	max-width: 100%;
	width: 100%;
}

@media (min-width: 480px) {
	.card {
		max-width: 280px;
		aspect-ratio: 1 / 1;
		min-height: 250px;
	}
}
.card h4{ 
	margin: 0 0 var(--spacing-xs) 0; 
	font-size: var(--text-lg); 
	line-height: 1.3; 
}

.card p{ 
	margin: 0 0 auto 0; 
	color: var(--muted); 
	font-size: var(--text-sm); 
	line-height: 1.4; 
	flex-grow: 1; 
}

@media (max-width: 480px) {
	.card h4 {
		font-size: var(--text-base);
	}
	
	.card p {
		font-size: var(--text-xs);
	}
}
.card-actions{ display:flex; gap: 8px; margin-top: 16px; justify-content: center; }
.chip{ display:inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: rgba(255,255,255,0.02); }

.contact-form{ display:grid; gap: 12px; }
.contact-form .row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px){ .contact-form .row{ grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea{ 
	width: 100%; 
	background: rgba(255,255,255,0.02); 
	border: 1px solid var(--border); 
	color: var(--text); 
	padding: var(--spacing-sm); 
	border-radius: 10px; 
	font-family: inherit; 
	font-size: 16px; /* Prevent zoom on iOS */
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}
.contact-form textarea{ min-height: 120px; resize: vertical; }

/* Bottom glassy navbar */
.bottom-nav{
	position: fixed;
	left: 50%;
	bottom: max(18px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: grid;
	grid-auto-flow: column;
	gap: var(--spacing-xs);
	padding: var(--spacing-xs);
	background: rgba(13,17,23,0.9);
	backdrop-filter: saturate(140%) blur(14px);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 16px;
	box-shadow: 0 6px 30px rgba(0,0,0,0.4);
	z-index: 50;
	max-width: calc(100vw - 2rem);
}

.nav-item{
	display: flex;
	gap: var(--spacing-xs);
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--text);
	border-radius: 12px;
	padding: var(--spacing-xs) var(--spacing-sm);
	border: 1px solid transparent;
	min-width: 70px;
	flex-shrink: 0;
}

@media (min-width: 480px) {
	.nav-item {
		min-width: 90px;
	}
}
.nav-item .icon{ font-size: 16px; }
.nav-item .label{ font-size: 13px; opacity: 0.9; }

.nav-item:hover{ border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); }
.nav-item.active{
	background: linear-gradient(135deg, rgba(124,158,255,0.18), rgba(34,211,238,0.18));
	border-color: rgba(255,255,255,0.22);
}

/* Space for bottom nav on small screens */
@media (max-width: 768px){
	body{ 
		padding-bottom: max(120px, env(safe-area-inset-bottom)); 
	}
}

/* Minimal tech grid */
.tech-grid{ list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.tech-item{ display:flex; flex-direction: column; align-items:center; gap: 6px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; }
.tech-item:hover{ border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); }
.tech-icon-img{ width: 22px; height: 22px; display:block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.tech-label{ font-size: 11px; color: var(--muted); }

/* Transparent tech grid - 3x4 layout */
.tech-grid--circular{ 
	display: grid; 
	grid-template-columns: repeat(3, 1fr); 
	gap: var(--spacing-sm); 
	max-width: 320px; 
	margin: 0 auto; 
	justify-items: center; 
	align-items: center;
}

@media (min-width: 480px) {
	.tech-grid--circular {
		grid-template-columns: repeat(4, 1fr);
		max-width: 480px;
		gap: var(--spacing-md);
	}
}
.tech-grid--circular .tech-item{ 
	width: auto; 
	height: auto; 
	border-radius: 0; 
	padding: 12px; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	background: transparent; 
	border: none; 
	transition: all 0.3s ease; 
	position: relative; 
}
.tech-grid--circular .tech-item:hover{ 
	transform: translateY(-3px) scale(1.1); 
	filter: brightness(1.2); 
}
.tech-grid--circular .tech-icon-img{ 
	width: 40px; 
	height: 40px; 
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)); 
	transition: all 0.3s ease;
}

/* Tech Tooltip Styles */
.tech-item {
	position: relative;
}

.tech-tooltip {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-tooltip::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid rgba(0, 0, 0, 0.9);
}

.tech-item:hover .tech-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-4px);
}



/* Mobile dimensions - simplified responsive approach */
@media (max-width: 640px) {
	.hero-copy {
		text-align: center;
		align-items: center;
		gap: var(--spacing-md);
	}
	
	.hero-title {
		text-align: center;
		justify-content: center;
		height: auto;
		min-height: auto;
		line-height: 1.3;
		overflow: visible;
	}
	
	.name {
		text-align: center;
		height: auto;
		min-height: auto;
		line-height: 1.3;
	}
	
	.cta-group {
		justify-content: center;
		width: 100%;
	}
	
	.site-header {
		text-align: center;
	}
}

/* Tablet adjustments */
@media (max-width: 768px) {
	.hero-grid {
		gap: var(--spacing-md);
		min-height: auto;
	}
	
	.hero-aside {
		order: -1;
		margin-bottom: var(--spacing-sm);
	}
	
	.profile-img {
		transform: none;
	}
}

/* About section side-by-side layout */
.section:has(.about-grid) {
	background: transparent;
	margin: 0;
	border-radius: 0;
	padding: 48px 0;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-xl);
	align-items: center;
	justify-items: center;
	text-align: center;
}

@media (min-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		justify-items: start;
		text-align: left;
	}
}

.tech-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.tech-section h3 {
	margin-bottom: var(--spacing-md);
	text-align: center;
	width: 100%;
}

@media (min-width: 900px) {
	.tech-section {
		align-items: flex-start;
	}
}

.projects-section {
	display: flex;
	flex-direction: column;
}

.projects-section h3 {
	margin-bottom: 24px;
	text-align: center;
}

/* Adjust tech grid for left alignment */
.tech-section .tech-grid--circular {
	justify-content: flex-start;
	max-width: 100%;
	margin: 0;
}

/* Quick Stats Section */
.quick-stats {
	margin-top: 32px;
}

.quick-stats h4 {
	margin: 0 0 20px 0;
	font-size: 18px;
	color: var(--text);
	text-align: center;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-sm);
	max-width: 100%;
	margin: 0 auto;
}

@media (min-width: 480px) {
	.stats-grid {
		max-width: 280px;
	}
}

.stat-item {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: var(--spacing-sm);
	text-align: center;
	transition: all 0.3s ease;
	min-height: 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.stat-item:hover {
	border-color: rgba(255,255,255,0.16);
	background: rgba(255,255,255,0.08);
	transform: translateY(-2px);
}

.stat-number {
	font-size: 24px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 4px;
	line-height: 1;
}

.stat-label {
	font-size: 11px;
	color: var(--muted);
	line-height: 1.3;
}

/* Adjust projects grid for side-by-side layout - single row grid */
.projects-section .projects {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	justify-items: center;
	max-width: 900px;
	margin: 0 auto;
}

/* Responsive adjustments for side-by-side layout */
@media (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-lg);
	}
	
	.tech-section {
		order: 1;
	}
	
	.projects-section {
		order: 2;
	}
	
	.projects-section .projects {
		grid-template-columns: repeat(2, 1fr);
		max-width: 600px;
	}
}

@media (max-width: 640px) {
	/* Single column on mobile */
	.projects-section .projects {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin: 0 auto;
	}
	
	.card {
		max-width: 100%;
		width: 100%;
	}
}

/* Utility classes */
.mt{ margin-top: 48px; }

/* Hero layout with profile */
.hero-grid{ 
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg);
	min-height: auto;
	align-items: center;
	justify-items: center;
	text-align: center;
}

@media (min-width: 768px) {
	.hero-grid {
		grid-template-columns: 1.2fr 0.8fr;
		align-items: flex-start;
		justify-items: start;
		text-align: left;
		min-height: 300px;
	}
}
.hero-aside{ 
	display: flex; 
	justify-content: center; 
	align-self: center; 
}

@media (min-width: 768px) {
	.hero-aside {
		align-self: start;
	}
	
	.hero-grid .hero-aside {
		order: 0;
	}
	
	.hero-grid .hero-copy {
		order: 0;
	}
}
.profile-img{ 
	width: 200px;
	height: 200px;
	aspect-ratio: 1 / 1; 
	border-radius: 50%; 
	object-fit: cover; 
	border: 2px solid rgba(255,255,255,0.12); 
	box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 6px rgba(255,255,255,0.04); 
	background: rgba(255,255,255,0.02); 
	transform: none;
}

@media (min-width: 480px) {
	.profile-img {
		width: 250px;
		height: 250px;
	}
}

@media (min-width: 768px) {
	.profile-img {
		width: 300px;
		height: 300px;
		transform: translateY(-16px);
	}
}


/* Three rows of four (12 items) */
.tech-grid--3x4{ 
	grid-template-columns: repeat(4, minmax(0,1fr)) !important; 
}
@media (max-width: 800px){ 
	.tech-grid--3x4{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; } 
}
@media (max-width: 600px){ 
	.tech-grid--3x4{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; } 
}

/* Typewriter Effect */
.hero-title {
	position: relative;
	min-height: 1.2em;
	height: 1.2em;
	text-align: left;
	overflow: hidden;
}

.typewriter-text {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	border-right: transparent;
	font-weight: 600;
	color: var(--text);
	caret-color: transparent;
	user-select: none;
	max-width: 100%;
	word-wrap: break-word;
}

@media (max-width: 640px) {
	.typewriter-text {
		white-space: normal;
		word-wrap: break-word;
		line-height: 1.3;
		text-align: center;
		overflow: visible;
	}
}

.typewriter-cursor {
	display: inline-block;
	background: var(--text);
	width: 2px;
	height: 1.5em;
	margin-left: 2px;
	animation: blink 1.2s infinite;
	opacity: 1;
	vertical-align: baseline;
}

/* Name typewriter cursor */
.typewriter-cursor-name {
	display: inline-block;
	background: var(--text);
	width: 2px;
	height: 1.2em;
	margin-left: 2px;
	animation: blink 1.2s infinite;
	opacity: 1;
	vertical-align: baseline;
}

.typewriter-name {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	border-right: transparent;
	font-weight: inherit;
	color: var(--text);
	caret-color: transparent;
	user-select: none;
	min-height: 1.2em;
	max-width: 100%;
	word-wrap: break-word;
}

@media (max-width: 640px) {
	.typewriter-name {
		white-space: normal;
		word-wrap: break-word;
		line-height: 1.3;
		text-align: center;
		overflow: visible;
	}
}

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

@keyframes typing {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes erasing {
	from { width: 100%; }
	to { width: 0; }
}

/* Smooth transitions for typewriter */
.typewriter-text.typing {
	animation: typing 2s steps(40, end) forwards;
	width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.typewriter-text.erasing {
	animation: erasing 1s steps(40, end) forwards;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.typewriter-text.paused {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

/* GitHub Calendar Styles */
.github-calendar-wrapper {
	display: flex;
	justify-content: center;
	margin: 0;
	width: 100%;
}

.github-calendar-link {
	text-decoration: none;
	display: block;
	border-radius: 16px;
	padding: 20px;
	background: rgba(13,17,23,0.6);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	backdrop-filter: blur(8px);
	max-width: 100%;
	overflow: hidden;
}

/* GitHub Contribution Chart Styles */
.github-contribution-section {
	margin: 32px 0 0 0;
	width: 100%;
}

.github-contribution-section h4 {
	margin: 0 0 20px 0;
	font-size: 18px;
	color: var(--text);
	text-align: center;
}

.github-chart {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--border);
	padding: var(--spacing-sm);
	transition: all 0.3s ease;
	min-height: 80px;
	max-height: 200px;
	object-fit: contain;
	display: block;
}

@media (min-width: 480px) {
	.github-chart {
		min-height: 120px;
	}
}

.github-chart:hover {
	border-color: rgba(255,255,255,0.16);
	background: rgba(255,255,255,0.08);
	transform: translateY(-2px);
}

.github-calendar-link:hover {
	border-color: rgba(255,255,255,0.18);
	background: rgba(13,17,23,0.8);
	box-shadow: 0 15px 40px rgba(0,0,0,0.4);
	transform: translateY(-2px);
}

.github-calendar {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
}

/* Override default GitHub calendar styles to match dark theme */
.github-calendar .js-calendar-graph .ContributionCalendar-day[data-level="0"] {
	fill: rgba(255,255,255,0.06);
}

.github-calendar .js-calendar-graph .ContributionCalendar-day[data-level="1"] {
	fill: rgba(124,158,255,0.3);
}

.github-calendar .js-calendar-graph .ContributionCalendar-day[data-level="2"] {
	fill: rgba(124,158,255,0.5);
}

.github-calendar .js-calendar-graph .ContributionCalendar-day[data-level="3"] {
	fill: rgba(124,158,255,0.7);
}

.github-calendar .js-calendar-graph .ContributionCalendar-day[data-level="4"] {
	fill: rgba(124,158,255,0.9);
}

.github-calendar .js-calendar-graph-svg {
	max-width: 100%;
	height: auto;
}

.github-calendar .contrib-legend {
	font-size: 11px;
}

.github-calendar .contrib-legend .legend {
	color: var(--muted);
}

.github-calendar .contrib-number {
	color: var(--text);
	font-weight: 600;
}

.github-calendar .contrib-footer {
	color: var(--muted);
	font-size: 12px;
	margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 800px) {
	.github-calendar-link {
		padding: 16px;
		margin: 0 -16px;
		border-radius: 12px;
	}
	
	.github-calendar {
		font-size: 11px;
	}
}

@media (max-width: 600px) {
	.github-calendar-link {
		padding: 12px;
		margin: 0 -12px;
	}
	
	.github-calendar .js-calendar-graph .ContributionCalendar-day {
		rx: 1;
		ry: 1;
	}
}

/* Footer */
.site-footer {
	padding: 24px 0 120px; /* Extra bottom padding to account for fixed bottom nav */
	margin-top: 0;
	border-top: none;
	background: transparent;
}

.footer-text {
	margin: 0;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	opacity: 0.8;
}

/* Projects Section Styles */
#projects {
	background: transparent;
	padding: var(--spacing-xl) 0;
}

@media (max-width: 640px) {
	#projects {
		padding: var(--spacing-lg) 0;
	}
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@media (max-width: 640px) {
	.section-title {
		font-size: var(--text-2xl);
		margin-bottom: var(--spacing-sm);
	}
}

/* Projects section: force solid white title like hero */
#projects .section-title {
	background: none;
	-webkit-background-clip: initial;
	-webkit-text-fill-color: initial;
	background-clip: initial;
	color: var(--text);
}

/* Projects typewriter specific styling */
#projects .section-title .typewriter-text {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	letter-spacing: 0.1em;
}

.section-subtitle {
	text-align: center;
	color: var(--muted);
	font-size: 1.1rem;
	margin-bottom: var(--spacing-lg);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px) {
	.section-subtitle {
		font-size: var(--text-base);
		margin-bottom: var(--spacing-md);
		padding: 0 var(--spacing-sm);
	}
}

/* Projects Carousel Styles */
.projects-carousel {
	margin-top: var(--spacing-xl);
	position: relative;
	padding-bottom: var(--spacing-lg);
	min-height: 300px;
}

@media (max-width: 640px) {
	.projects-carousel {
		margin-top: var(--spacing-lg);
		padding-bottom: var(--spacing-md);
		min-height: 280px;
	}
}

.carousel-container {
	overflow: hidden;
	border-radius: 16px;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--spacing-sm);
	height: auto;
	min-height: 220px;
}

@media (max-width: 767px) {
	.carousel-container {
		padding: 0 var(--spacing-sm); /* Reduced padding for better centering */
		max-width: 100vw;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

@media (min-width: 768px) {
	.carousel-container {
		max-width: 680px; /* 2 cards * 340px each */
		min-height: 240px;
	}
}

@media (min-width: 1200px) {
	.carousel-container {
		max-width: 1020px; /* 3 cards * 340px each */
		min-height: 260px;
	}
}

/* Remove swipe zones - using button navigation only */

.carousel-track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	gap: var(--spacing-md);
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	-webkit-overflow-scrolling: touch;
	height: auto;
	min-height: 200px;
	align-items: flex-start;
	/* Optimize for smooth scrolling */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	perspective: 1000px;
	-webkit-perspective: 1000px;
}

.carousel-track:active {
	cursor: grabbing;
}

@media (max-width: 767px) {
	.carousel-track {
		gap: var(--spacing-lg); /* Increased gap for better spacing between cards */
		min-height: 180px;
		justify-content: center;
		width: 100%;
	}
}

.carousel-track:active {
	cursor: grabbing;
}

.carousel-slide {
	flex: 0 0 280px;
	cursor: pointer;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	position: relative;
	transition: transform 0.2s ease;
	/* Optimize for smooth scrolling */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* Remove hover effect on mobile to prevent auto-swipe behavior */
@media (min-width: 768px) {
	.carousel-slide:hover {
		transform: translateY(-2px);
	}
}

.carousel-slide:active {
	transform: translateY(0) scale(0.98);
	transition: transform 0.1s ease;
}

@media (max-width: 767px) {
	.carousel-slide {
		flex: 0 0 calc(100vw - 4 * var(--spacing-sm)); /* Full width minus padding */
		max-width: 320px; /* Max width for mobile screens */
		margin: 0 auto;
	}
}

@media (min-width: 480px) and (max-width: 767px) {
	.carousel-slide {
		flex: 0 0 300px;
		max-width: 300px;
	}
}

@media (min-width: 768px) {
	.carousel-slide {
		flex: 0 0 300px;
	}
}

.project-preview {
	position: relative;
	height: 180px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid var(--border);
	background: var(--card);
	transition: all 0.3s ease;
	cursor: pointer;
	touch-action: manipulation;
}

@media (min-width: 640px) {
	.project-preview {
		height: 200px;
	}
}

.project-preview:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(124, 158, 255, 0.2);
}

/* Touch feedback for mobile */
.project-preview:active {
	transform: translateY(-2px) scale(0.98);
	transition: transform 0.1s ease;
}

@media (hover: none) {
	.project-preview:hover {
		transform: none;
		box-shadow: 0 4px 12px rgba(124, 158, 255, 0.15);
	}
}

.project-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.project-preview:hover img {
	transform: scale(1.05);
}

.project-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	padding: 20px 16px 16px;
	color: white;
	transform: translateY(0);
	transition: all 0.3s ease;
	pointer-events: none; /* Allow clicks to pass through to parent */
}

.project-preview:hover .project-overlay {
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Show overlay more prominently on touch devices */
@media (hover: none) {
	.project-overlay {
		background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
		padding: 16px 12px 12px;
	}
	
	.project-overlay h3 {
		font-size: 1rem;
	}
	
	.project-overlay p {
		font-size: 0.85rem;
		opacity: 1;
	}
}

.project-overlay h3 {
	margin: 0 0 4px 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.project-overlay p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

.carousel-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-md);
	margin-top: var(--spacing-md);
	margin-bottom: var(--spacing-md);
	position: relative;
	z-index: 10;
	padding: var(--spacing-sm) 0;
}

@media (max-width: 640px) {
	.carousel-navigation {
		margin-top: var(--spacing-sm);
		margin-bottom: var(--spacing-sm);
		gap: var(--spacing-sm);
		padding: var(--spacing-xs) 0;
	}
}

.carousel-btn {
	background: rgba(124, 158, 255, 0.2);
	border: 1px solid var(--accent);
	color: var(--text);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: white;
	transform: scale(1.1);
}

@media (max-width: 640px) {
	.carousel-btn {
		width: 36px;
		height: 36px;
		font-size: 1rem;
		background: rgba(124, 158, 255, 0.3);
		box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	}
}

.carousel-dots {
	display: flex;
	gap: var(--spacing-xs);
	align-items: center;
	justify-content: center;
	padding: 0 var(--spacing-sm);
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.3);
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.active {
	background: var(--accent);
	transform: scale(1.3);
	box-shadow: 0 2px 6px rgba(124,158,255,0.4);
}

.carousel-dot:hover {
	background: rgba(255,255,255,0.5);
	transform: scale(1.1);
}

@media (max-width: 640px) {
	.carousel-dot {
		width: 8px;
		height: 8px;
		background: rgba(255,255,255,0.4);
	}
	
	.carousel-dot.active {
		transform: scale(1.4);
	}
}

.project-card {
	background: rgba(13,17,23,0.66);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

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

.project-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	border-radius: 12px;
	border: 2px solid var(--border);
	background: var(--card);
	padding: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	border-radius: 8px;
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-image:hover .image-overlay {
	opacity: 1;
}

.view-icon {
	font-size: 2rem;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-image {
	border-color: var(--accent);
	box-shadow: 0 8px 20px rgba(124, 158, 255, 0.2);
}

.project-card:hover .project-image img {
	transform: scale(1.05);
}

.project-content {
	padding: 24px;
}

.project-content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text);
}

.project-content p {
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.tech-tag {
	background: rgba(124,158,255,0.1);
	color: var(--accent);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(124,158,255,0.2);
}

.project-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.project-actions .btn {
	padding: 8px 16px;
	font-size: 0.9rem;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.project-actions .btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: white;
	border: none;
}

.project-actions .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(124,158,255,0.3);
}

.project-actions .btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.project-actions .btn-ghost:hover {
	background: var(--card);
	border-color: var(--accent);
	color: var(--accent);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
	.section-title {
		font-size: 2rem;
	}
	
	.section-subtitle {
		font-size: 1rem;
		margin-bottom: 32px;
	}
	
	.projects-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 32px;
		max-width: 100%;
	}
	
	.project-actions {
		flex-direction: column;
	}
	
	.project-actions .btn {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.project-content {
		padding: 20px;
	}
	
	.project-image {
		height: 160px;
	}
}

/* Image Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(5px);
}

.modal-content {
	position: relative;
	margin: auto;
	padding: var(--spacing-md);
	width: 90%;
	max-width: 800px;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.modal-content img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
	position: absolute;
	top: 10px;
	right: 25px;
	color: white;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	transition: color 0.3s ease;
}

.close:hover {
	color: var(--accent);
}

.modal-caption {
	color: white;
	font-size: 1.1rem;
	margin-top: 15px;
	font-weight: 500;
}

/* Modal Animation */
.modal.show {
	display: block;
	animation: fadeIn 0.3s ease;
}

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

.modal-content {
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from { 
		opacity: 0;
		transform: translateY(-50%) scale(0.8);
	}
	to { 
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

/* Project Modal Styles */
.project-modal-content {
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
}

.project-modal-body {
	padding: 0;
}

.project-modal-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 12px 12px 0 0;
}

.project-modal-info {
	padding: 32px;
}

.project-modal-info h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text);
}

.project-modal-info p {
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 24px;
	font-size: 1rem;
}

.project-modal-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	justify-content: center;
}

.project-modal-tech .tech-tag {
	background: rgba(124,158,255,0.1);
	color: var(--accent);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid rgba(124,158,255,0.2);
}

.project-modal-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

.project-modal-actions .btn {
	padding: 12px 24px;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.project-modal-actions .btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: white;
	border: none;
}

.project-modal-actions .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(124,158,255,0.3);
}

.project-modal-actions .btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.project-modal-actions .btn-ghost:hover {
	background: var(--card);
	border-color: var(--accent);
	color: var(--accent);
}




