* {
	box-sizing: border-box;
	border-radius: 12px;
}

html {
	height: auto;
	overflow-y: auto;
}

body {
	width: 100%;
	min-height: 100%;
	margin: 0 auto;
	overflow-x: hidden;
	background-color: white;
	color: #1f2937;
}

main {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: 2rem;
	width: 70%;
	margin: 0 auto;
	padding: 2rem;
}

.left-column {
	display: block;
	width: 360px;
}

.right-column {
	display: block;
	min-width: 0;
}

.below-column {
	grid-column: 1 / -1;
	width: 100%;
}

.left-column section:not(:last-child),
.right-column section:not(:last-child),
.below-column section:not(:last-child) {
	margin-bottom: 2rem;
}

.right-column section,
.below-column section,
.image-section {
	padding: 1.5rem;
	background: #ffffff;
	border: 2px solid #2563eb;
	transition: opacity 600ms ease, transform 600ms ease;
}

.image-section,
.about-section {
	height: 22rem;
	margin: 0;
	padding: 1.5rem;
	border: 2px solid #9ca3af;
	background: #ffffff;
	overflow: hidden;
}

.image-section {
	margin: 0;
	border: none;
	overflow: hidden;
}

.about-section p {
	font-size: 1.1rem;
}

.right-column section {
	border: 2px solid #9ca3af;
}

.below-column section {
	border: 2px solid #9ca3af;
}

.skills-section {
	border: 2px solid #9ca3af;
}

.profile-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transform: translateY(-15px) scale(1.65);
	transform-origin: center;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.skill-card {
	display: flex;
	min-width: 0;
	height: 230px;
	aspect-ratio: auto;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.75rem;
	background: #4f46e5;
	color: #ffffff;
	border: 2px solid transparent;
	border-radius: 12px;
	transition: opacity 600ms ease, transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.skills-grid .skill-card:nth-child(1) {
	background: #4f46e5;
}

.skills-grid .skill-card:nth-child(2) {
	background: #0891b2;
}

.skills-grid .skill-card:nth-child(3) {
	background: #059669;
}

.skills-grid .skill-card:nth-child(4) {
	background: #b45309;
}

.skills-grid .skill-card:nth-child(5) {
	background: #dc2626;
}

.skills-grid .skill-card:nth-child(6) {
	background: #0284c7;
}

.skills-grid .skill-card:nth-child(7) {
	background: #7c3aed;
}

.skills-grid .skill-card:nth-child(8) {
	background: #db2777;
}

.skills-grid .skill-card:nth-child(9) {
	background: #0d9488;
}

.skill-card:hover,
.skill-card.is-active {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
	filter: brightness(1.12);
}

.skill-card h3 {
	margin: 0;
	font-size: 1.3rem;
}

.skill-items {
	margin: 1rem 0;
	padding-left: 1.1rem;
	font-size: 1rem;
	line-height: 1.45;
	color: #ffffff;
}

.skill-items li + li {
	margin-top: 0.45rem;
}

.skill-items:has(li:nth-child(4)) {
	display: grid;
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	column-gap: 1rem;
}

.skill-items:has(li:nth-child(4)) li + li {
	margin-top: 0;
}

.web-card .skill-items:has(li:nth-child(4)) {
	grid-template-rows: repeat(2, auto);
}

.skill-level {
	position: relative;
	height: 4px;
	background: #4b5563;
	border-radius: 0;
}

.skill-level::after {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	content: attr(data-level);
	color: #ffffff;
	font-size: 1.5rem;
	opacity: 0;
	transition: opacity 700ms ease;
}

.skill-level span {
	display: block;
	width: 0;
	height: 100%;
	background: #ffffff;
	border-radius: 0;
	transition: width 1500ms ease;
}
.skill-card.is-active .skill-level span {
	width: var(--skill-level);
}

.skill-card.is-active .skill-level::after {
	opacity: 1;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
}

.project-card {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #ffffff;
	border: 2px solid #9ca3af;
	transition: opacity 600ms ease, transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.project-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
	border-color: #2563eb;
}

.project-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.project-header h3 {
	margin: 0;
	font-size: 1.05rem;
}

.project-links {
	display: flex;
	gap: 0.75rem;
	font-size: 0.85rem;
}

.project-links a,
.contact-links a {
	color: #2563eb;
	text-decoration: underline;
	transition: color 200ms ease;
}

.project-links a:hover,
.contact-links a:hover {
	color: #1d4ed8;
}

.project-stack {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.85rem;
	font-style: italic;
	color: #4b5563;
}

.project-card ul {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.9rem;
	line-height: 1.4;
}

.project-card ul li + li {
	margin-top: 0.5rem;
}

.experience-callout {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, #7c3aed, #db2777);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	overflow: hidden;
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	margin-top: 1rem;
	font-size: 0.95rem;
}

.resume-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0;
	padding: 0.85rem 1.5rem;
	background: #2563eb;
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid #2563eb;
	transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
	animation: resume-pulse 2.5s ease-in-out infinite;
}

.resume-link:hover {
	background: #1d4ed8;
	color: #ffffff;
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
	animation-play-state: paused;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 32rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.form-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4b5563;
}

.form-field input,
.form-field textarea {
	padding: 0.6rem 0.75rem;
	font: inherit;
	color: #1f2937;
	background: #ffffff;
	border: 2px solid #9ca3af;
	border-radius: 8px;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field textarea {
	resize: vertical;
}

.form-submit {
	align-self: flex-start;
	padding: 0.65rem 1.5rem;
	font: inherit;
	font-weight: 600;
	color: #ffffff;
	background: #2563eb;
	border: 2px solid #2563eb;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.form-submit:hover {
	background: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.form-hint {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
}

@media (max-width: 520px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

@keyframes resume-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
	}
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.slide-in-right {
	opacity: 0;
	transform: translateX(160px);
	transition: opacity 800ms ease, transform 800ms ease;
}

.experience-callout .slide-in-right {
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.35;
}

.experience-callout .slide-in-right::after {
	content: '|';
	display: inline-block;
	margin-left: 6px;
	color: #facc15;
	animation: blink-cursor 1s steps(1) infinite;
}

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

.slide-in-right.is-visible {
	opacity: 1;
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.slide-in-right {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.skill-card,
	.project-card,
	.resume-link,
	.right-column section,
	.below-column section {
		transition: none;
		animation: none;
	}

	.experience-callout .slide-in-right::after {
		animation: none;
	}
}

@media (max-width: 1024px) {
	main {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.left-column {
		width: 100%;
		max-width: 360px;
	}

	.right-column {
		grid-template-columns: 1fr;
	}

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

	.skill-card {
		height: auto;
	}

	.image-section,
	.about-section {
		height: auto;
	}

	.profile-image {
		height: auto;
	}
}

@media (max-width: 520px) {
	.skills-grid {
		grid-template-columns: 1fr;
	}
}
