/* Base and CSS variables */
:root {
	--bg: #0b1220;
	--bg-elev: #0f172a;
	--text: #f1f5f9;
	--muted: #94a3b8;
	--primary: #60a5fa;
	--primary-700: #3b82f6;
	--primary-50: rgba(96, 165, 250, 0.1);
	--border: #1e293b;
	--card: #1e293b;
	--success: #34d399;
	--shadow: rgba(0, 0, 0, 0.3);
	--shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Light theme */
html.light {
	--bg: #ffffff;
	--bg-elev: #f8fafc;
	--text: #0f172a;
	--muted: #64748b;
	--primary: #2563eb;
	--primary-700: #1d4ed8;
	--primary-50: rgba(37, 99, 235, 0.1);
	--border: #e2e8f0;
	--card: #ffffff;
	--success: #10b981;
	--shadow: rgba(0, 0, 0, 0.05);
	--shadow-lg: rgba(0, 0, 0, 0.1);
}

* { 
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html { 
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
	font-size: 16px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	body.menu-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
		height: 100vh;
		top: 0;
		left: 0;
	}
}

img { 
	max-width: 100%; 
	display: block; 
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

@media (max-width: 480px) {
	img {
		border-radius: 8px;
	}
}

a { 
	color: inherit; 
	text-decoration: none;
	transition: color 0.2s ease;
}

.container { 
	width: min(1200px, 92%);
	margin: 0 auto;
	padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--border);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	transition: all 0.3s ease;
}

.brand { 
	display: inline-flex; 
	align-items: center; 
	gap: 12px; 
	font-weight: 700; 
	font-size: 1.1rem;
	letter-spacing: -0.01em;
	transition: transform 0.2s ease;
}

.brand:hover {
	transform: translateY(-1px);
}

.brand__dot { 
	width: 10px; 
	height: 10px; 
	border-radius: 50%; 
	background: linear-gradient(135deg, var(--primary), var(--primary-700)); 
	display: inline-block;
	box-shadow: 0 0 12px var(--primary-50);
	animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 12px var(--primary-50);
	}
	50% {
		transform: scale(1.2);
		box-shadow: 0 0 20px var(--primary);
	}
}

.nav { 
	display: flex; 
	align-items: center; 
	gap: 20px; 
	position: relative;
}

.nav__toggle { 
	display: none;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	font-size: 1.1rem;
	transition: all 0.2s ease;
	min-width: 44px;
	min-height: 44px;
}

.nav__toggle:hover {
	background: var(--primary-50);
	border-color: var(--primary);
}

.nav__list { 
	display: flex; 
	list-style: none; 
	padding: 0; 
	margin: 0; 
	gap: 4px; 
}

.nav__list a { 
	padding: 10px 16px; 
	border-radius: 10px; 
	color: var(--muted);
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	position: relative;
}

.nav__list a:hover { 
	color: var(--text); 
	background: var(--primary-50);
}

.nav__list a:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.theme-toggle { 
	background: transparent; 
	border: 1px solid var(--border); 
	color: var(--text); 
	padding: 10px 12px; 
	border-radius: 10px; 
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.2s ease;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-toggle:hover { 
	border-color: var(--primary);
	background: var(--primary-50);
	transform: rotate(15deg);
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Hero */
.hero { 
	display: grid; 
	grid-template-columns: 1fr; 
	align-items: center; 
	gap: 48px; 
	padding: 80px 0;
	border-bottom: 1px solid var(--border);
	min-height: 70vh;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
	animation: pulse 8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.3;
		transform: scale(1);
	}
	50% {
		opacity: 0.6;
		transform: scale(1.1);
	}
}

.hero__content {
	z-index: 1;
	animation: fadeInUp 0.8s ease-out;
}

.hero__content h1 { 
	font-size: clamp(2.5rem, 5vw + 1rem, 4rem); 
	line-height: 1.1; 
	margin: 0 0 24px;
	font-weight: 800;
	background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__content .lead {
	animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__content .hero__actions {
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lead { 
	color: var(--muted); 
	font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem);
	line-height: 1.7;
	max-width: 600px;
	margin-bottom: 8px;
}

.hero__actions { 
	display: flex; 
	flex-wrap: wrap;
	gap: 16px; 
	margin-top: 32px; 
}

.hero__media { 
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	animation: fadeInRight 1s ease-out 0.3s both;
	margin-top: 32px;
}

.hero__media::before {
	content: '';
	position: absolute;
	top: 20%;
	left: -10%;
	width: 120%;
	height: 60%;
	background: linear-gradient(135deg, var(--primary-50), transparent);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
	pointer-events: none;
	z-index: -1;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-20px) rotate(5deg);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero__media img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 20px 60px var(--shadow-lg);
	transition: transform 0.5s ease;
	animation: floatImage 8s ease-in-out infinite;
}

.profile-image-wrapper {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.profile-image {
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 20px 60px var(--shadow-lg);
	transition: transform 0.5s ease;
	animation: floatImage 8s ease-in-out infinite;
	object-fit: cover;
	aspect-ratio: 1;
	background: var(--card);
}

@media (max-width: 768px) {
	.profile-image-wrapper {
		max-width: 300px;
	}
	
	.profile-image {
		border-radius: 16px;
		box-shadow: 0 15px 40px var(--shadow-lg);
	}
}

@media (max-width: 480px) {
	.profile-image-wrapper {
		max-width: 250px;
	}
	
	.profile-image {
		border-radius: 12px;
		box-shadow: 0 10px 30px var(--shadow-lg);
	}
}

/* Fallback if image not found */
.profile-image-wrapper::before {
	content: 'Profile Image';
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--muted);
	font-size: 0.9rem;
	z-index: -1;
}

@keyframes floatImage {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-15px);
	}
}

.hero__media:hover img {
	transform: translateY(-10px) scale(1.02);
	animation-play-state: paused;
}

@media (min-width: 768px) {
	.nav__list {
		display: flex !important;
	}
	
	.hero {
		padding: 100px 0;
	}
	
	.hero__actions {
		margin-top: 40px;
	}
}

@media (min-width: 1024px) {
	.hero { 
		grid-template-columns: 1.2fr 1fr;
		padding: 120px 0;
		gap: 60px;
	}
	
	.hero__media { 
		display: block; 
		margin-top: 0;
	}
}

/* Buttons */
.btn { 
	display: inline-flex; 
	align-items: center; 
	justify-content: center; 
	padding: 14px 28px; 
	border: 1px solid var(--border); 
	border-radius: 12px; 
	color: var(--text); 
	background: transparent; 
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	min-height: 48px;
	position: relative;
	overflow: hidden;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
	.btn {
		min-height: 44px;
		padding: 12px 24px;
		font-size: 0.9rem;
		border-radius: 10px;
	}
}

.btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: var(--primary-50);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
	width: 300px;
	height: 300px;
}

.btn:hover { 
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px var(--shadow);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary { 
	background: linear-gradient(135deg, var(--primary), var(--primary-700)); 
	color: #fff; 
	border-color: var(--primary);
	box-shadow: 0 4px 14px rgba(96, 165, 250, 0.3);
}

.btn--primary:hover { 
	background: linear-gradient(135deg, var(--primary-700), var(--primary)); 
	border-color: var(--primary-700);
	box-shadow: 0 8px 24px rgba(96, 165, 250, 0.4);
}

.btn--primary::before {
	background: rgba(255, 255, 255, 0.1);
}

.btn--small { 
	padding: 10px 20px; 
	font-size: 0.9rem;
	min-height: 40px;
}

.btn:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Sections */
.section { 
	padding: 80px 0; 
	position: relative;
}

.section--alt { 
	background: var(--bg-elev); 
	border-top: 1px solid var(--border); 
	border-bottom: 1px solid var(--border); 
}

.section h2 { 
	font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem); 
	margin: 0 0 48px;
	font-weight: 800;
	letter-spacing: -0.03em;
	position: relative;
	display: inline-block;
	opacity: 0;
	transform: translateX(-30px);
	animation: slideInLeft 0.8s ease-out forwards;
	animation-play-state: paused;
}

@keyframes slideInLeft {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.section h2::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 0;
	width: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--primary-700));
	border-radius: 2px;
	animation: expandWidth 1s ease-out 0.5s forwards;
}

@keyframes expandWidth {
	to {
		width: 60px;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	
	.section h2 {
		margin-bottom: 36px;
		font-size: clamp(1.75rem, 6vw, 2.25rem);
	}
	
	.section--alt {
		padding: 60px 0;
	}
}

@media (max-width: 480px) {
	.section {
		padding: 40px 0;
	}
	
	.section h2 {
		margin-bottom: 28px;
	}
	
	.section--alt {
		padding: 40px 0;
	}
}

/* Cards */
.grid.cards { 
	display: grid; 
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
	gap: 24px;
}

.card { 
	background: var(--card); 
	border: 1px solid var(--border); 
	border-radius: 20px; 
	overflow: hidden; 
	display: flex; 
	flex-direction: column;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px var(--shadow);
	position: relative;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--primary-50), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	border-radius: 20px;
}

.card:hover::before {
	opacity: 1;
}

.card:hover {
	transform: translateY(-12px) scale(1.02);
	border-color: var(--primary);
	box-shadow: 0 20px 50px var(--shadow-lg);
}

.card__image {
	width: 100% !important;
	height: 320px !important;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.5s ease;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media (max-width: 768px) {
	.card__image {
		height: 200px;
	}
}

@media (max-width: 480px) {
	.card__image {
		height: 180px;
	}
}

.card:hover .card__image {
	transform: scale(1.05);
}

.card__body { 
	padding: 24px; 
	display: grid; 
	gap: 12px; 
	flex: 1;
	position: relative;
	z-index: 5;
}

.card__title { 
	margin: 0; 
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.card__text { 
	color: var(--muted); 
	margin: 0; 
	line-height: 1.6;
	font-size: 0.95rem;
}

.tags { 
	list-style: none; 
	display: flex; 
	flex-wrap: wrap; 
	gap: 10px; 
	padding: 0; 
	margin: 8px 0 0; 
}

.tags li { 
	border: 1px solid var(--border); 
	padding: 6px 12px; 
	border-radius: 20px; 
	color: var(--muted); 
	font-size: 0.85rem;
	background: var(--primary-50);
	border-color: transparent;
	transition: all 0.2s ease;
}

.tags li {
	animation: tagPulse 0.3s ease-out;
}

@keyframes tagPulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.tags li:hover {
	background: var(--primary);
	color: #fff;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.card__actions {
	display: flex; 
	flex-wrap: wrap;
	gap: 8px; 
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	position: relative;
	z-index: 10;
}

.card__actions .btn--small,
.card__actions .btn-3d {
	padding: 8px 16px;
	font-size: 0.85rem;
	min-height: 36px;
	flex: 1;
	min-width: 80px;
	position: relative;
	z-index: 10;
	pointer-events: auto;
}

@media (max-width: 640px) {
	.grid.cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.card {
		border-radius: 16px;
	}
	
	.card__image {
		height: 200px;
	}
	
	.card__actions {
		flex-direction: column;
		gap: 8px;
	}
	
	.card__actions .btn {
		width: 100%;
	}
}

/* Skills */
.skills { 
	display: grid; 
	gap: 16px; 
	padding: 0; 
	margin: 0; 
	list-style: none;
}

.skills li { 
	background: var(--card); 
	border: 1px solid var(--border); 
	border-radius: 16px; 
	padding: 20px 24px;
	transition: all 0.3s ease;
	font-size: 1.05rem;
}

.skills li:hover {
	transform: translateX(8px);
	border-color: var(--primary);
	box-shadow: 0 4px 12px var(--shadow);
}

.skills li strong {
	color: var(--primary);
	font-weight: 600;
	margin-right: 8px;
}

.muted { 
	color: var(--muted);
	font-size: 0.95rem;
}

/* Timeline */
.timeline { 
	display: grid; 
	gap: 24px; 
	position: relative;
	padding-left: 32px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--primary), var(--primary-700));
	border-radius: 2px;
}

.timeline__item { 
	background: var(--card); 
	border: 1px solid var(--border); 
	border-radius: 16px; 
	padding: 24px;
	position: relative;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px var(--shadow);
}

.timeline__item::before {
	content: '';
	position: absolute;
	left: -40px;
	top: 28px;
	width: 12px;
	height: 12px;
	background: var(--primary);
	border-radius: 50%;
	border: 3px solid var(--bg);
	box-shadow: 0 0 0 2px var(--primary);
}

.timeline__item:hover {
	transform: translateX(8px);
	border-color: var(--primary);
	box-shadow: 0 8px 24px var(--shadow-lg);
}

.timeline__item h3 {
	font-size: 1.3rem;
	margin-bottom: 8px;
	font-weight: 700;
}

.timeline__item p {
	margin: 8px 0;
}

@media (max-width: 768px) {
	.timeline {
		padding-left: 24px;
	}
	
	.timeline__item::before {
		left: -32px;
	}
}

/* Contact */
.contact { 
	display: grid; 
	gap: 28px;
	max-width: 100%;
	width: 100%;
}

.field { 
	display: grid; 
	gap: 8px; 
	position: relative;
}

label { 
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
	margin-bottom: 4px;
	display: block;
	letter-spacing: -0.01em;
}

input, textarea {
	background: var(--card);
	border: 2px solid var(--border);
	border-radius: 14px;
	padding: 16px 20px;
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:hover, textarea:hover {
	border-color: color-mix(in srgb, var(--border) 80%, var(--primary));
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
	input, textarea {
		border-radius: 12px;
		padding: 14px 18px;
		font-size: 16px; /* Prevents zoom on iOS */
	}
}

input:focus, textarea:focus { 
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-50), 0 4px 16px rgba(96, 165, 250, 0.2);
	background: var(--bg-elev);
	transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
	color: var(--muted);
	opacity: 0.7;
	font-weight: 400;
}

textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.6;
}

.error { 
	color: #f87171; 
	font-size: 0.875rem; 
	min-height: 1.2em;
	margin-top: 6px;
	padding-left: 4px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	animation: slideDown 0.3s ease-out;
}


@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-status { 
	color: var(--success); 
	font-weight: 600; 
	min-height: 1.2em;
	font-size: 0.95rem;
	padding: 12px 16px;
	background: color-mix(in srgb, var(--success) 15%, transparent);
	border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	animation: fadeInUp 0.5s ease-out;
}

.form-status::before {
	content: '✓';
	font-size: 1.1rem;
}

.contact__actions { 
	display: flex; 
	flex-direction: column;
	gap: 12px; 
	align-items: stretch;
	margin-top: 8px;
}

.contact__actions .btn {
	width: 100%;
	justify-content: center;
	font-size: 1rem;
	padding: 16px 32px;
	min-height: 52px;
	font-weight: 600;
	letter-spacing: -0.01em;
	position: relative;
}

.btn-text {
	position: relative;
	z-index: 1;
}

/* Footer */
.site-footer { 
	border-top: 1px solid var(--border); 
	padding: 40px 0;
	background: var(--bg-elev);
}

.footer__content { 
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	gap: 24px;
	flex-wrap: wrap;
}

.footer__content p {
	color: var(--muted);
	font-size: 0.95rem;
}

.social { 
	list-style: none; 
	padding: 0; 
	margin: 0; 
	display: flex; 
	gap: 20px;
}

.social a { 
	color: var(--muted);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.social a { 
	position: relative;
	overflow: hidden;
}

.social a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: var(--primary-50);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.4s ease, height 0.4s ease;
}

.social a:hover::before {
	width: 200%;
	height: 200%;
}

.social a:hover { 
	color: var(--primary);
	background: var(--primary-50);
	transform: translateY(-3px) scale(1.1);
}

/* ============================
   Mobile Bottom Navigation
   ============================ */

.bottom-nav {
	display: none;
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	max-width: 640px;
	z-index: 1100;
	pointer-events: none;
}

.bottom-nav__inner {
	margin: 0 auto 12px;
	width: calc(100% - 24px);
	max-width: 520px;
	background: var(--bg-elev);
	border-radius: 24px;
	box-shadow: 0 12px 40px var(--shadow-lg);
	border: 1px solid var(--border);
	padding: 6px 10px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	pointer-events: auto;
}

.bottom-nav__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 4px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 500;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 1.1rem;
}

.bottom-nav__label {
	letter-spacing: 0.01em;
}

.bottom-nav__item--active {
	color: var(--primary);
	transform: translateY(-2px);
}

.bottom-nav__item--active .bottom-nav__icon {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 8px 20px rgba(96, 165, 250, 0.55);
}

.bottom-nav__item:hover {
	background: var(--primary-50);
	color: var(--primary);
}

/* Mobile Navigation */
@media (max-width: 767px) {
	.site-header {
		padding: 12px 16px;
		flex-wrap: wrap;
		gap: 12px;
	}
	
	.brand {
		font-size: 1rem;
	}
	
	.brand__text {
		font-size: 0.95rem;
	}
	
	.nav {
		gap: 12px;
	}
	
	.nav__toggle { 
		display: inline-flex;
		padding: 8px 10px;
		min-width: 40px;
		min-height: 40px;
	}
	
	.theme-toggle {
		padding: 8px 10px;
		min-width: 40px;
		min-height: 40px;
		font-size: 1.1rem;
	}
	
	/* hide desktop nav on mobile, we'll use bottom nav instead */
	.nav__toggle,
	.nav__list {
		display: none !important;
	}
	
	.bottom-nav {
		display: block;
	}
	
	body {
		padding-bottom: 82px; /* space for bottom nav */
	}
	
	.hero {
		padding: 40px 0 60px;
		min-height: auto;
	}
	
	.hero__content {
		padding: 0;
	}
	
	.hero__content h1 {
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		margin-bottom: 20px;
		line-height: 1.2;
	}
	
	.lead {
		font-size: clamp(0.95rem, 3vw, 1.1rem);
		margin-bottom: 24px;
	}
	
	.hero__actions {
		flex-direction: column;
		width: 100%;
		gap: 12px;
		margin-top: 24px;
	}
	
	.hero__actions .btn {
		width: 100%;
		padding: 14px 24px;
		font-size: 0.9rem;
	}
	
	.footer__content { 
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}
	
	.social {
		justify-content: center;
		flex-wrap: wrap;
		gap: 12px;
	}
	
	.social a {
		font-size: 0.85rem;
		padding: 6px 10px;
	}
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
	.container {
		padding: 0 24px;
	}
	
	.site-header {
		padding: 14px 20px;
	}
	
	.hero {
		padding: 80px 0;
	}
	
	.hero__content h1 {
		font-size: clamp(2.5rem, 6vw, 3.5rem);
	}
	
	.lead {
		font-size: clamp(1.05rem, 2vw, 1.2rem);
	}
	
	.grid.cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.quick-links {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.education-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.code-snippets {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.certificates-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.contact-wrapper {
		gap: 40px;
	}
	
	.contact-detail-3d {
		padding: 18px;
	}
	
	.social-links {
		flex-wrap: wrap;
	}
	
	.contact-form-wrapper-3d {
		padding: 36px 32px;
	}
	
	.form-title {
		font-size: clamp(1.6rem, 4vw, 2rem);
	}
	
	.form-description {
		font-size: 0.95rem;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.container {
		padding: 0 16px;
		width: 100%;
	}
	
	.site-header {
		padding: 10px 12px;
	}
	
	.brand {
		font-size: 0.9rem;
		gap: 8px;
	}
	
	.brand__dot {
		width: 8px;
		height: 8px;
	}
	
	.brand__text {
		font-size: 0.85rem;
	}
	
	.nav__toggle,
	.theme-toggle {
		padding: 6px 8px;
		min-width: 36px;
		min-height: 36px;
		font-size: 1rem;
	}
	
	.cat-icon {
		width: 24px;
		height: 24px;
	}
	
	.hero {
		padding: 32px 0 48px;
	}
	
	.hero__content h1 {
		font-size: clamp(1.5rem, 10vw, 2rem);
		margin-bottom: 16px;
	}
	
	.lead {
		font-size: clamp(0.9rem, 4vw, 1rem);
		margin-bottom: 20px;
	}
	
	.hero__actions {
		margin-top: 20px;
		gap: 10px;
	}
	
	.hero__actions .btn {
		padding: 12px 20px;
		font-size: 0.85rem;
		min-height: 44px;
	}
	
	.section {
		padding: 40px 0;
	}
	
	.section h2 {
		font-size: clamp(1.5rem, 8vw, 1.75rem);
		margin-bottom: 32px;
	}
	
	.card__body {
		padding: 20px;
	}
	
	.card__title {
		font-size: 1.2rem;
	}
	
	.card__text {
		font-size: 0.9rem;
	}
	
	.tags li {
		font-size: 0.8rem;
		padding: 5px 10px;
	}
	
	.btn {
		padding: 12px 20px;
		font-size: 0.85rem;
		min-height: 44px;
	}
	
	.contact-wrapper {
		gap: 32px;
	}
	
	.contact-detail-3d {
		padding: 16px;
		margin-bottom: 16px;
	}
	
	.contact-icon {
		font-size: 1.5rem;
		width: 40px;
		height: 40px;
	}
	
	input, textarea {
		padding: 12px 16px;
		font-size: 0.95rem;
	}
	
	.footer__content {
		padding: 24px 0;
	}
	
	.footer__content p {
		font-size: 0.85rem;
	}
}

/* Reveal animations */
.reveal { 
	opacity: 0; 
	transform: translateY(40px) scale(0.95); 
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
	            transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible { 
	opacity: 1; 
	transform: translateY(0) scale(1);
}

/* Staggered animation for cards */
.card.reveal:nth-child(1) { transition-delay: 0.1s; }
.card.reveal:nth-child(2) { transition-delay: 0.2s; }
.card.reveal:nth-child(3) { transition-delay: 0.3s; }
.card.reveal:nth-child(4) { transition-delay: 0.4s; }
.card.reveal:nth-child(5) { transition-delay: 0.5s; }
.card.reveal:nth-child(6) { transition-delay: 0.6s; }

.card.reveal.is-visible:nth-child(1) { transition-delay: 0.1s; }
.card.reveal.is-visible:nth-child(2) { transition-delay: 0.2s; }
.card.reveal.is-visible:nth-child(3) { transition-delay: 0.3s; }
.card.reveal.is-visible:nth-child(4) { transition-delay: 0.4s; }
.card.reveal.is-visible:nth-child(5) { transition-delay: 0.5s; }
.card.reveal.is-visible:nth-child(6) { transition-delay: 0.6s; }

/* Staggered animation for timeline items */
.timeline__item.reveal:nth-child(1) { transition-delay: 0.1s; }
.timeline__item.reveal:nth-child(2) { transition-delay: 0.2s; }
.timeline__item.reveal:nth-child(3) { transition-delay: 0.3s; }

.timeline__item.reveal.is-visible:nth-child(1) { transition-delay: 0.1s; }
.timeline__item.reveal.is-visible:nth-child(2) { transition-delay: 0.2s; }
.timeline__item.reveal.is-visible:nth-child(3) { transition-delay: 0.3s; }

/* Staggered animation for skills */
.skills li {
	opacity: 0;
	transform: translateX(-20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.skills li.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.skills li:nth-child(1) { transition-delay: 0.1s; }
.skills li:nth-child(2) { transition-delay: 0.2s; }
.skills li:nth-child(3) { transition-delay: 0.3s; }
.skills li:nth-child(4) { transition-delay: 0.4s; }

/* Smooth scroll offset */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	
	html {
		scroll-behavior: auto;
	}
}

/* Focus visible styles */
*:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Selection styles */
::selection {
	background: var(--primary-50);
	color: var(--text);
}

/* Loading animation */
@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

.loading {
	background: linear-gradient(
		90deg,
		var(--border) 0%,
		color-mix(in srgb, var(--border) 50%, var(--primary-50)) 50%,
		var(--border) 100%
	);
	background-size: 1000px 100%;
	animation: shimmer 2s infinite;
}

/* Scroll progress indicator */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--primary-700));
	transform-origin: left;
	transform: scaleX(0);
	transition: transform 0.1s ease;
	z-index: 9999;
	width: 100%;
}

/* Button loading state */
.btn--loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Fade in animation for page load */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

body {
	animation: fadeIn 0.5s ease-out;
}

/* ============================================
   3D ANIMATIONS & ENHANCEMENTS
   ============================================ */

/* Page Transition */
.page-transition {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 20%, rgba(96,165,250,0.18), transparent 55%),
	            radial-gradient(circle at 80% 80%, rgba(15,23,42,0.95), var(--bg));
	z-index: 10000;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.page-transition.active {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0);
}


/* CAT Icon Styles */
.nav__cat {
	position: relative;
}

.cat-icon {
	width: 28px;
	height: 28px;
	transition: transform 0.3s ease;
}

.nav__cat:hover .cat-icon {
	transform: rotate(15deg) scale(1.1);
}

.nav__cat:active .cat-icon {
	transform: rotate(-15deg) scale(0.95);
}

/* Active Nav Link */
.nav__list a.active {
	color: var(--primary);
	background: var(--primary-50);
}

/* 3D Main Container */
.main-3d {
	perspective: 1000px;
	transform-style: preserve-3d;
}

/* 3D Hero Section */
.hero-3d {
	perspective: 1200px;
	transform-style: preserve-3d;
}

.hero__bg-3d {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 50% 50%, var(--primary-50) 0%, transparent 70%);
	opacity: 0.4;
	pointer-events: none;
}

/* 3D Text Effects */
.text-3d {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.text-3d-layer {
	display: inline-block;
}

/* 3D Cube - Subtle Professional Version */
.cube-3d {
	width: 200px;
	height: 200px;
	position: relative;
	margin: 0 auto;
	transform-style: preserve-3d;
	animation: rotateCube 20s infinite linear;
	opacity: 0.6;
}

@keyframes rotateCube {
	0% { transform: rotateX(0deg) rotateY(0deg); }
	100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
	position: absolute;
	width: 200px;
	height: 200px;
	border: 1px solid var(--border);
	background: var(--primary-50);
	backface-visibility: hidden;
	opacity: 0.3;
}

.cube-face.front {
	transform: rotateY(0deg) translateZ(100px);
	background: linear-gradient(135deg, var(--primary-50), transparent);
}

.cube-face.back {
	transform: rotateY(180deg) translateZ(100px);
	background: linear-gradient(135deg, transparent, var(--primary-50));
}

.cube-face.right {
	transform: rotateY(90deg) translateZ(100px);
	background: linear-gradient(135deg, var(--primary-50), transparent);
}

.cube-face.left {
	transform: rotateY(-90deg) translateZ(100px);
	background: linear-gradient(135deg, transparent, var(--primary-50));
}

.cube-face.top {
	transform: rotateX(90deg) translateZ(100px);
	background: linear-gradient(135deg, var(--primary-50), transparent);
}

.cube-face.bottom {
	transform: rotateX(-90deg) translateZ(100px);
	background: linear-gradient(135deg, transparent, var(--primary-50));
}

/* 3D Cards - Professional Subtle Effects */
.card-3d {
	perspective: 1000px;
	transform-style: preserve-3d;
}

.card-3d-inner {
	transform-style: preserve-3d;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 1;
}

.card-3d:hover .card-3d-inner {
	transform: translateY(-8px) translateZ(10px);
}

.card-image-3d {
	transform-style: preserve-3d;
	transition: transform 0.4s ease;
}

.card-3d:hover .card-image-3d {
	transform: scale(1.02);
}

/* 3D Buttons - Professional Style */
.btn-3d {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	z-index: 10;
	pointer-events: auto !important;
}

/* 3D Section Titles */
.section-title-3d {
	position: relative;
}

/* Page Hero Styles */
.hero-page {
	min-height: 40vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.page-title-3d {
	font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
	font-weight: 800;
	background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.page-subtitle {
	font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
	color: var(--muted);
	margin-top: 16px;
}

/* Quick Links 3D */
.quick-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.quick-link-3d {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform-style: preserve-3d;
	position: relative;
	overflow: hidden;
}

.quick-link-3d::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: var(--primary-50);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.quick-link-3d:hover::before {
	width: 300px;
	height: 300px;
}

.quick-link-3d:hover {
	transform: translateY(-8px);
	border-color: var(--primary);
	box-shadow: 0 12px 30px var(--shadow-lg);
}

.quick-link-icon {
	font-size: 2.5rem;
	margin-bottom: 16px;
	display: block;
	transition: transform 0.3s ease;
}

.quick-link-3d:hover .quick-link-icon {
	transform: scale(1.1);
}

.quick-link-3d h3 {
	margin: 16px 0 8px;
	font-size: 1.3rem;
}

.quick-link-3d p {
	color: var(--muted);
	font-size: 0.95rem;
}

/* 3D Timeline */
.timeline-3d {
	perspective: 1000px;
}

.timeline-item-3d {
	transform-style: preserve-3d;
	position: relative;
}

.timeline-item-inner {
	transform-style: preserve-3d;
	transition: transform 0.4s ease;
}

.timeline-item-3d:hover .timeline-item-inner {
	transform: translateX(8px);
}

.timeline-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding: 0;
}

.timeline-tags li {
	background: var(--primary-50);
	border: 1px solid var(--primary);
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.85rem;
	color: var(--primary);
}

/* Skills Grid 3D */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 48px;
}

/* Education Grid 3D */
.education-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.education-item-3d {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	transform-style: preserve-3d;
	transition: all 0.4s ease;
}

.education-item-inner {
	transform-style: preserve-3d;
	transition: transform 0.4s ease;
}

.education-item-3d:hover {
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 12px 30px var(--shadow-lg);
}

.education-item-3d h3 {
	color: var(--primary);
	margin-bottom: 12px;
	font-size: 1.4rem;
}

.education-item-3d p {
	margin: 8px 0;
}

.skill-category-3d {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	transform-style: preserve-3d;
	transition: all 0.4s ease;
}

.skill-category-3d:hover {
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 12px 30px var(--shadow-lg);
}

.skill-category-3d h3 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.4rem;
}

.skills-3d li {
	transform-style: preserve-3d;
	transition: transform 0.3s ease;
}

.skills-3d li:hover {
	transform: translateX(6px);
}

/* Blog Grid 3D */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
	margin-top: 48px;
}

.blog-card-3d {
	perspective: 1000px;
	transform-style: preserve-3d;
}

.blog-card-inner {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog-card-3d:hover .blog-card-inner {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px var(--shadow-lg);
}

.blog-card-image {
	width: 100%;
	height: 200px;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.blog-card-3d:hover .blog-card-image {
	transform: scale(1.03);
}

.blog-card-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-date {
	color: var(--muted);
	font-size: 0.85rem;
	margin-bottom: 12px;
}

.blog-card-content h3 {
	margin: 0 0 12px;
	font-size: 1.4rem;
}

.blog-card-content p {
	color: var(--muted);
	margin: 0 0 16px;
	flex: 1;
}

.blog-link {
	color: var(--primary);
	font-weight: 600;
	transition: transform 0.3s ease;
	display: inline-block;
}

.blog-link:hover {
	transform: translateX(5px);
}

/* Certificates Grid */
.certificates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
	margin-top: 48px;
}

.certificate-item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px var(--shadow);
	transform-style: preserve-3d;
	display: flex;
	flex-direction: column;
}

.certificate-item:hover {
	transform: translateY(-8px);
	border-color: var(--primary);
	box-shadow: 0 12px 40px var(--shadow-lg);
}

.certificate-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bg);
}

.certificate-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.certificate-item:hover .certificate-image {
	transform: scale(1.05);
}

.certificate-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;
	backdrop-filter: blur(4px);
}

.certificate-item:hover .certificate-overlay {
	opacity: 1;
}

.certificate-view-btn {
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	transform: translateY(10px);
}

.certificate-item:hover .certificate-view-btn {
	transform: translateY(0);
}

.certificate-view-btn:hover {
	background: var(--primary-700);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
}

.certificate-info {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.certificate-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

.certificate-org {
	margin: 0;
	color: var(--primary);
	font-weight: 500;
	font-size: 0.95rem;
}

.certificate-date {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

/* Certificate Modal */
.certificate-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.certificate-modal.active {
	opacity: 1;
	visibility: visible;
}

.certificate-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(8px);
}

.certificate-modal-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	z-index: 1;
	background: var(--card);
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.certificate-modal.active .certificate-modal-content {
	transform: scale(1);
}

.certificate-modal-image {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 12px;
	display: block;
}

.certificate-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: var(--card);
	border: 2px solid var(--border);
	color: var(--text);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 2;
}

.certificate-modal-close:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	transform: rotate(90deg);
}

@media (max-width: 768px) {
	.certificate-modal-close {
		top: -35px;
		right: -10px;
		width: 36px;
		height: 36px;
		font-size: 1.3rem;
	}
}

/* Code Snippets 3D */
.code-snippets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.code-snippet-3d {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	transform-style: preserve-3d;
	transition: all 0.4s ease;
}

.code-snippet-3d:hover {
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 12px 30px var(--shadow-lg);
}

.code-snippet-3d h3 {
	margin-bottom: 16px;
	color: var(--primary);
}

.code-snippet-3d pre {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 16px;
	overflow-x: auto;
	margin: 16px 0;
	font-size: 0.85rem;
	line-height: 1.6;
}

.code-snippet-3d code {
	color: var(--text);
	font-family: 'Courier New', monospace;
}

/* Contact Page 3D */
.contact-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 48px;
	margin-top: 48px;
}

@media (max-width: 1024px) {
	.contact-wrapper {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-top: 32px;
	}
	
	.contact-info-3d {
		order: 2;
	}
	
	.contact-form-wrapper-3d {
		order: 1;
	}
}

.contact-info-3d {
	transform-style: preserve-3d;
}

.contact-details {
	margin: 32px 0;
}

.contact-detail-3d {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	transform-style: preserve-3d;
	transition: all 0.3s ease;
}

.contact-detail-3d:hover {
	transform: translateX(6px);
	border-color: var(--primary);
}

.contact-icon {
	font-size: 2rem;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-50);
	border-radius: 12px;
	flex-shrink: 0;
}

.contact-detail-3d h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.contact-detail-3d p {
	margin: 0;
	color: var(--muted);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.social-link-3d {
	padding: 10px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	font-weight: 500;
	transform-style: preserve-3d;
	transition: all 0.3s ease;
}

.social-link-3d:hover {
	transform: translateY(-3px);
	border-color: var(--primary);
	background: var(--primary-50);
	color: var(--primary);
}

.contact-form-wrapper-3d {
	transform-style: preserve-3d;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 8px 32px var(--shadow);
	position: relative;
	overflow: hidden;
}

.form-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--text);
	letter-spacing: -0.02em;
}

.form-description {
	color: var(--muted);
	font-size: 1rem;
	margin: 0 0 32px;
	line-height: 1.6;
}

.required {
	color: #f87171;
	font-weight: 600;
}

.contact-form-wrapper-3d::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--primary-700));
	opacity: 0.8;
}

.contact-form-wrapper-3d::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.contact-form-wrapper-3d:hover::after {
	opacity: 0.4;
}

@media (max-width: 768px) {
	.contact-form-wrapper-3d {
		padding: 32px 24px;
		border-radius: 20px;
	}
	
	.form-title {
		font-size: clamp(1.5rem, 5vw, 1.75rem);
		margin-bottom: 10px;
	}
	
	.form-description {
		font-size: 0.95rem;
		margin-bottom: 28px;
	}
}

@media (max-width: 480px) {
	.contact-form-wrapper-3d {
		padding: 24px 20px;
		border-radius: 16px;
	}
	
	.form-title {
		font-size: clamp(1.4rem, 6vw, 1.6rem);
		margin-bottom: 8px;
	}
	
	.form-description {
		font-size: 0.9rem;
		margin-bottom: 24px;
	}
}

.contact-3d {
	transform-style: preserve-3d;
	position: relative;
	z-index: 1;
}

.field-3d {
	transform-style: preserve-3d;
	position: relative;
}

.field-3d input,
.field-3d textarea {
	transform-style: preserve-3d;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 1;
}

.field-3d input:focus,
.field-3d textarea:focus {
	box-shadow: 0 0 0 4px var(--primary-50), 0 4px 16px rgba(96, 165, 250, 0.2);
	transform: translateY(-1px);
	border-color: var(--primary);
}

.field-3d input:invalid:not(:placeholder-shown):not(:focus),
.field-3d textarea:invalid:not(:placeholder-shown):not(:focus) {
	border-color: #f87171;
	box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
}

.field-3d input:valid:not(:placeholder-shown):not(:focus),
.field-3d textarea:valid:not(:placeholder-shown):not(:focus) {
	border-color: var(--success);
}

.field-3d label {
	position: relative;
	z-index: 2;
	transition: color 0.3s ease;
}

.field-3d:has(input:focus) label,
.field-3d:has(textarea:focus) label {
	color: var(--primary);
}

/* Section 3D Alt */
.section-3d-alt {
	position: relative;
	overflow: hidden;
}

.section-3d-alt::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
	opacity: 0.3;
	pointer-events: none;
}

/* Responsive Design for 3D Elements */
@media (max-width: 1024px) {
	.cube-3d {
		width: 150px;
		height: 150px;
	}
	
	.cube-face {
		width: 150px;
		height: 150px;
	}
	
	.cube-face.front,
	.cube-face.back,
	.cube-face.right,
	.cube-face.left,
	.cube-face.top,
	.cube-face.bottom {
		transform: translateZ(75px);
	}
	
	.contact-wrapper {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.contact-info-3d {
		order: 2;
	}
	
	.contact-form-wrapper-3d {
		order: 1;
	}
}

@media (max-width: 768px) {
	.cube-3d {
		width: 120px;
		height: 120px;
	}
	
	.cube-face {
		width: 120px;
		height: 120px;
	}
	
	.cube-face.front,
	.cube-face.back,
	.cube-face.right,
	.cube-face.left,
	.cube-face.top,
	.cube-face.bottom {
		transform: translateZ(60px);
	}
	
	.quick-links {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.quick-link-3d {
		padding: 24px 16px;
	}
	
	.quick-link-icon {
		font-size: 2rem;
		margin-bottom: 12px;
	}
	
	.quick-link-3d h3 {
		font-size: 1.1rem;
		margin: 12px 0 6px;
	}
	
	.quick-link-3d p {
		font-size: 0.85rem;
	}
	
	.skills-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.skill-category-3d {
		padding: 24px;
	}
	
	.skill-category-3d h3 {
		font-size: 1.2rem;
		margin-bottom: 16px;
	}
	
	.skills-3d li {
		font-size: 0.95rem;
		padding: 16px 20px;
	}
	
	.education-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.education-item-3d {
		padding: 24px;
	}
	
	.education-item-3d h3 {
		font-size: 1.2rem;
	}
	
	.blog-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.blog-card-image {
		height: 180px;
	}
	
	.blog-card-content {
		padding: 20px;
	}
	
	.blog-card-content h3 {
		font-size: 1.2rem;
	}
	
	.code-snippets {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.code-snippet-3d {
		padding: 20px;
	}
	
	.code-snippet-3d h3 {
		font-size: 1.1rem;
		margin-bottom: 12px;
	}
	
	.code-snippet-3d pre {
		padding: 12px;
		font-size: 0.8rem;
		overflow-x: auto;
	}
	
	.certificates-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.certificate-info {
		padding: 20px;
	}
	
	.certificate-title {
		font-size: 1.2rem;
	}
	
	.certificate-modal-content {
		max-width: 95vw;
		padding: 16px;
	}
	
	.certificate-modal-image {
		max-height: 80vh;
	}
	
	.timeline {
		padding-left: 20px;
	}
	
	.timeline__item {
		padding: 20px;
	}
	
	.timeline__item::before {
		left: -28px;
		width: 10px;
		height: 10px;
	}
	
	.timeline__item h3 {
		font-size: 1.1rem;
	}
	
	.timeline-tags {
		gap: 6px;
	}
	
	.timeline-tags li {
		font-size: 0.8rem;
		padding: 3px 10px;
	}
	
	.contact-details {
		margin: 24px 0;
	}
	
	.contact-detail-3d {
		padding: 16px;
		margin-bottom: 16px;
		flex-direction: row;
		align-items: flex-start;
	}
	
	.contact-icon {
		font-size: 1.5rem;
		width: 44px;
		height: 44px;
		flex-shrink: 0;
	}
	
	.contact-detail-3d h3 {
		font-size: 1rem;
	}
	
	.contact-detail-3d p {
		font-size: 0.9rem;
	}
	
	.social-links {
		flex-direction: column;
		gap: 10px;
	}
	
	.social-link-3d {
		width: 100%;
		text-align: center;
		padding: 12px 20px;
	}
	
	.contact-form-wrapper-3d {
		padding: 28px 20px;
	}
	
	.contact {
		gap: 24px;
	}
	
	.contact__actions .btn {
		padding: 14px 24px;
		min-height: 48px;
	}
}

@media (max-width: 480px) {
	.quick-links {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.quick-link-3d {
		padding: 20px 16px;
	}
	
	.quick-link-icon {
		font-size: 1.8rem;
	}
	
	.quick-link-3d h3 {
		font-size: 1rem;
	}
	
	.quick-link-3d p {
		font-size: 0.8rem;
	}
	
	.cube-3d {
		display: none;
	}
	
	.page-title-3d {
		font-size: clamp(1.75rem, 10vw, 2.5rem);
	}
	
	.page-subtitle {
		font-size: clamp(0.9rem, 4vw, 1.1rem);
		margin-top: 12px;
	}
	
	.hero-page {
		min-height: 30vh;
		padding: 40px 0;
	}
	
	.timeline {
		padding-left: 16px;
	}
	
	.timeline::before {
		width: 2px;
	}
	
	.timeline__item::before {
		left: -24px;
		width: 8px;
		height: 8px;
		border-width: 2px;
	}
	
	.timeline__item {
		padding: 16px;
	}
	
	.timeline__item h3 {
		font-size: 1rem;
	}
	
	.timeline__item p {
		font-size: 0.9rem;
	}
	
	.skills-3d li {
		padding: 14px 18px;
		font-size: 0.9rem;
	}
	
	.education-item-3d {
		padding: 20px;
	}
	
	.education-item-3d h3 {
		font-size: 1.1rem;
	}
	
	.education-item-3d p {
		font-size: 0.9rem;
	}
	
	.blog-card-image {
		height: 160px;
	}
	
	.blog-card-content {
		padding: 16px;
	}
	
	.blog-date {
		font-size: 0.8rem;
	}
	
	.blog-card-content h3 {
		font-size: 1.1rem;
	}
	
	.blog-card-content p {
		font-size: 0.9rem;
	}
	
	.code-snippet-3d {
		padding: 16px;
	}
	
	.code-snippet-3d h3 {
		font-size: 1rem;
	}
	
	.code-snippet-3d pre {
		padding: 10px;
		font-size: 0.75rem;
	}
	
	.certificates-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.certificate-item {
		border-radius: 16px;
	}
	
	.certificate-image-wrapper {
		aspect-ratio: 3 / 2;
	}
	
	.certificate-info {
		padding: 16px;
	}
	
	.certificate-title {
		font-size: 1.1rem;
	}
	
	.certificate-org {
		font-size: 0.9rem;
	}
	
	.certificate-date {
		font-size: 0.85rem;
	}
	
	.certificate-view-btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	
	.certificate-modal-content {
		max-width: 98vw;
		padding: 12px;
		border-radius: 16px;
	}
	
	.certificate-modal-image {
		max-height: 75vh;
		border-radius: 8px;
	}
	
	.contact-wrapper {
		gap: 24px;
	}
	
	.contact-detail-3d {
		padding: 14px;
		margin-bottom: 12px;
	}
	
	.contact-icon {
		width: 40px;
		height: 40px;
		font-size: 1.3rem;
	}
	
	.contact-detail-3d h3 {
		font-size: 0.95rem;
	}
	
	.contact-detail-3d p {
		font-size: 0.85rem;
	}
	
	.social-link-3d {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
	
	input, textarea {
		padding: 14px 18px;
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	textarea {
		min-height: 120px;
	}
	
	label {
		font-size: 0.9rem;
	}
	
	.error {
		font-size: 0.85rem;
	}
	
	.form-status {
		font-size: 0.9rem;
		padding: 10px 14px;
	}
	
	.contact__actions .btn {
		padding: 14px 24px;
		min-height: 48px;
		font-size: 0.95rem;
	}
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
	.hero {
		padding: 40px 0;
		min-height: auto;
	}
	
	.hero-page {
		min-height: 25vh;
		padding: 30px 0;
	}
	
	.site-header {
		padding: 10px 16px;
	}
	
	.section {
		padding: 50px 0;
	}
}

/* Extra small devices */
@media (max-width: 360px) {
	.container {
		padding: 0 12px;
	}
	
	.site-header {
		padding: 8px 12px;
	}
	
	.brand__text {
		font-size: 0.8rem;
	}
	
	.hero__content h1 {
		font-size: clamp(1.5rem, 12vw, 1.75rem);
	}
	
	.lead {
		font-size: 0.85rem;
	}
	
	.btn {
		padding: 10px 18px;
		font-size: 0.85rem;
		min-height: 40px;
	}
	
	.card__body {
		padding: 16px;
	}
	
	.card__title {
		font-size: 1.1rem;
	}
	
	.section {
		padding: 32px 0;
	}
	
	.section h2 {
		font-size: 1.4rem;
		margin-bottom: 24px;
	}
}





