* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

:root {
	--bg-primary: #000000;
	--bg-card: #000000;
	--bg-elevated: #0f0f0f;
	--text-primary: #ffffff;
	--text-secondary: #cccccc;
	--text-muted: #888888;
	--border-color: rgba(255, 255, 255, 0.2);
	--glow-soft: rgba(255, 255, 255, 0.15);
	--github: #ffffff;
	--linkedin: #0077b5;
	--email: #ea4335;
	--python-color: #3776ab;
	--js-color: #f7df1e;
	--react-color: #61dafb;
	--node-color: #339933;
	--linux-color: #fcc624;
	--git-color: #f05032;
	--html-color: #e34f26;
	--css-color: #1572b6;
	--docker-color: #2496ed;
	--mongo-color: #47a248;
	--aws-color: #ff9900;
	--vscode-color: #007acc;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		system-ui, sans-serif;
	background: var(--bg-primary);
	min-height: 100vh;
	min-height: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: var(--text-primary);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	perspective: 1000px;
	-webkit-perspective: 1000px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	max-width: 500px;
}

.business-card {
	width: 100%;
	max-width: 420px;
	height: 250px;
	position: relative;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	-webkit-transition: -webkit-transform 0.6s
		cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
	border-radius: 16px;
	border: 2px solid var(--border-color);
	animation: cardEntrance 0.8s ease-out,
		pulseGlow 4s ease-in-out infinite 0.8s;
	touch-action: manipulation;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

@keyframes pulseGlow {
	0%,
	100% {
		box-shadow: 0 0 20px var(--glow-soft), 0 4px 20px rgba(0, 0, 0, 0.8);
	}
	50% {
		box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
			0 6px 25px rgba(0, 0, 0, 0.9);
	}
}

@keyframes cardEntrance {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.business-card.flipped {
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
}

.card-face {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 16px;
	background: var(--bg-card);
	display: flex;
	overflow: hidden;
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

.card-back {
	transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
}

.card-left {
	flex: 0 0 35%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
}

.card-right {
	flex: 1;
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.profile-section {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.profile-image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 15%;
	border: 2px solid rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
	box-shadow: 0 0 15px var(--glow-soft);
	display: block;
}

.status-indicator {
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	background: #00ff00;
	border: 2px solid var(--bg-card);
	border-radius: 50%;
	animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.1);
	}
}

.info-section {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.name {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.3px;
	word-wrap: break-word;
}

.title {
	font-size: 12px;
	color: var(--text-secondary);
	font-weight: 400;
	margin: 0;
	letter-spacing: 0.2px;
	line-height: 1.3;
}

.location {
	font-size: 11px;
	color: var(--text-muted);
	margin: 0;
}

.social-links {
	display: flex;
	gap: 10px;
	margin: 8px 0;
	flex-wrap: nowrap;
}

.social-link {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-elevated);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 16px;
	position: relative;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.social-link:hover {
	transform: translateY(-2px) scale(1.05);
	-webkit-transform: translateY(-2px) scale(1.05);
}

.social-link:active {
	transform: scale(0.95);
	-webkit-transform: scale(0.95);
}

.social-link.github:hover,
.social-link.github:active {
	background: var(--github);
	color: var(--bg-primary);
}

.social-link.linkedin:hover,
.social-link.linkedin:active {
	background: var(--linkedin);
	color: white;
}

.social-link.email:hover,
.social-link.email:active {
	background: var(--email);
	color: white;
}

.social-tooltip {
	position: absolute;
	bottom: -25px;
	left: 50%;
	transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 9px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-family: "Courier New", monospace;
	z-index: 100;
}

.social-link:hover .social-tooltip {
	opacity: 1;
}

.social-link:active .social-tooltip {
	opacity: 1;
}

.tagline {
	margin-top: 5px;
}

.tagline p {
	font-style: italic;
	color: var(--text-muted);
	font-size: 10px;
	line-height: 1.3;
	margin: 0;
	font-weight: 500;
}

.flip-hint {
	position: absolute;
	top: 12px;
	right: 12px;
	color: var(--text-muted);
	font-size: 14px;
	opacity: 0.5;
	transition: all 0.3s ease;
	pointer-events: none;
}

.flip-hint i {
	transition: transform 0.3s ease;
	-webkit-transition: -webkit-transform 0.3s ease;
}

.back-content {
	width: 100%;
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
}

.about-header {
	text-align: center;
}

.about-header h2 {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 8px 0;
}

.divider {
	width: 40px;
	height: 2px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.6),
		rgba(255, 255, 255, 0.2)
	);
	margin: 0 auto;
	border-radius: 1px;
}

.about-text {
	text-align: center;
}

.about-text p {
	color: var(--text-secondary);
	line-height: 1.4;
	font-size: 11px;
	margin: 0;
	max-width: 95%;
	margin: 0 auto;
}

.tech-section h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
	margin: 0 0 12px 0;
}

.tech-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 8px;
	justify-items: center;
	max-width: 280px;
	margin: 0 auto;
}

.tech-item {
	position: relative;
	width: 32px;
	height: 32px;
	background: var(--bg-elevated);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--text-secondary);
	transition: all 0.2s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.tech-item:active {
	transform: scale(0.9);
	-webkit-transform: scale(0.9);
}

.tech-item.python:active {
	color: var(--python-color);
}
.tech-item.javascript:active {
	color: var(--js-color);
}
.tech-item.react:active {
	color: var(--react-color);
}
.tech-item.node:active {
	color: var(--node-color);
}
.tech-item.linux:active {
	color: var(--linux-color);
}
.tech-item.git:active {
	color: var(--git-color);
}
.tech-item.html:active {
	color: var(--html-color);
}
.tech-item.css:active {
	color: var(--css-color);
}
.tech-item.docker:active {
	color: var(--docker-color);
}
.tech-item.mongodb:active {
	color: var(--mongo-color);
}
.tech-item.aws:active {
	color: var(--aws-color);
}
.tech-item.vscode:active {
	color: var(--vscode-color);
}

.flip-hint.back {
	opacity: 0.4;
}

.mobile-hint {
	text-align: center;
	opacity: 0.6;
}

.mobile-hint p {
	color: var(--text-muted);
	font-size: 12px;
	margin: 0;
	font-style: italic;
}

@media (min-width: 400px) {
	.business-card {
		max-width: 450px;
		height: 270px;
	}
	.card-right,
	.back-content {
		padding: 25px 30px;
	}
	.avatar {
		width: 100px;
		height: 100px;
	}
	.name {
		font-size: 22px;
	}
	.title {
		font-size: 13px;
	}
	.social-link {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}
	.tech-item {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}
}

@media (min-width: 768px) {
	body {
		padding: 40px 20px;
	}
	.business-card {
		max-width: 500px;
		height: 300px;
	}
	.card-left {
		padding: 25px;
	}
	.card-right,
	.back-content {
		padding: 35px 40px;
		gap: 16px;
	}
	.avatar {
		width: 130px;
		height: 130px;
	}
	.name {
		font-size: 28px;
		letter-spacing: -0.8px;
	}
	.title {
		font-size: 15px;
	}
	.location {
		font-size: 13px;
	}
	.social-links {
		gap: 14px;
	}
	.social-link {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}
	.tagline p {
		font-size: 12px;
	}
	.about-text p {
		font-size: 13px;
	}
	.tech-grid {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: repeat(2, 1fr);
		gap: 12px;
		max-width: 420px;
	}
	.tech-item {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}
	.flip-hint {
		font-size: 16px;
	}
	.avatar:hover {
		transform: scale(1.08);
		box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
		filter: brightness(1.1);
	}
	.social-link:hover {
		transform: translateY(-2px) scale(1.1);
		-webkit-transform: translateY(-2px) scale(1.1);
	}
	.tech-item:hover {
		transform: translateY(-2px) scale(1.1);
		-webkit-transform: translateY(-2px) scale(1.1);
	}
	.tech-item.python:hover {
		color: var(--python-color);
	}
	.tech-item.javascript:hover {
		color: var(--js-color);
	}
	.tech-item.react:hover {
		color: var(--react-color);
	}
	.tech-item.node:hover {
		color: var(--node-color);
	}
	.tech-item.linux:hover {
		color: var(--linux-color);
	}
	.tech-item.git:hover {
		color: var(--git-color);
	}
	.tech-item.html:hover {
		color: var(--html-color);
	}
	.tech-item.css:hover {
		color: var(--css-color);
	}
	.tech-item.docker:hover {
		color: var(--docker-color);
	}
	.tech-item.mongodb:hover {
		color: var(--mongo-color);
	}
	.tech-item.aws:hover {
		color: var(--aws-color);
	}
	.tech-item.vscode:hover {
		color: var(--vscode-color);
	}
	.business-card:hover .flip-hint i {
		transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
	}
	.mobile-hint {
		display: none;
	}
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.business-card {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
}

@media (prefers-reduced-motion: reduce) {
	.business-card {
		animation: none;
		transition: transform 0.3s ease;
	}
	.avatar,
	.social-link,
	.tech-item {
		transition: none;
	}
	.status-indicator {
		animation: none;
	}
}

@supports (-webkit-appearance: none) {
	body {
		min-height: -webkit-fill-available;
	}
}
