*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--accent: #FFCE00;
	--bg: #111111;
	--bg-card: #1a1a1a;
	--bg-card-hover: #222222;
	--border: rgba(255, 255, 255, 0.08);
	--text: #ffffff;
	--text-muted: rgba(255, 255, 255, 0.5);
	--text-secondary: rgba(255, 255, 255, 0.7);
	--nav-height: 72px;
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--font-serif: 'Playfair Display', Georgia, serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	height: var(--nav-height);
	background: rgba(17, 17, 17, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 3rem;
	z-index: 100;
	border-bottom: 1px solid var(--border);
}

.nav-brand {
	font-size: 0.85rem;
	color: var(--text-secondary);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 400;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: var(--text);
}

.nav-sep {
	color: var(--text-muted);
	font-size: 0.75rem;
	user-select: none;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text);
	font-size: 1.25rem;
	cursor: pointer;
}

/* SECTIONS */
section {
	padding: 6rem 2rem;
}

.container {
	max-width: 900px;
	margin: 0 auto;
}

/* HERO */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: var(--nav-height);
	padding-bottom: 4rem;
}

.hero-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--border);
	margin-bottom: 1.5rem;
}

.hero-greeting {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
	font-weight: 400;
}

.hero h1 {
	font-family: var(--font-serif);
	font-size: 3.5rem;
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: 2.5rem;
	max-width: 650px;
	letter-spacing: -0.01em;
	background: linear-gradient(90deg,
			#ffffff 0%,
			#ffffff 35%,
			#b0b0b0 50%,
			#ffffff 65%,
			#ffffff 100%);
	background-size: 600px 100%;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

.hero h1 strong {
	font-weight: 700;
	color: inherit;
}

.hero h1 em {
	font-style: italic;
	color: inherit;
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: border-color 0.2s, background 0.2s;
	background: transparent;
}

.btn-outline:hover {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.04);
}

.btn-outline svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* COMPANIES / EXPERIENCE LOGOS BAR */
.companies-bar {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 2.5rem 2rem;
}

.companies-bar .container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
}

.company-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.tech-name {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

.tech-name svg {
	flex-shrink: 0;
}

/* SERVICES / SKILLS SECTION */
.services {
	text-align: center;
}

.services-heading {
	font-family: var(--font-serif);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.25;
	max-width: 550px;
	margin: 0 auto 3rem;
}

.services-heading strong {
	font-weight: 700;
}

.services-heading em {
	font-style: italic;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.service-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 2rem 1.5rem;
	text-align: left;
	transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	background: var(--bg-card-hover);
}

.service-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.service-icon svg {
	width: 18px;
	height: 18px;
	stroke: var(--text-secondary);
	fill: none;
	stroke-width: 1.5;
}

.service-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.service-card p {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* PROFILE / ABOUT */
.about {
	border-top: 1px solid var(--border);
}

.about-grid {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 3rem;
	align-items: start;
}

.about-photo {
	width: 250px;
	height: 250px;
	border-radius: 16px;
	object-fit: cover;
	border: 1px solid var(--border);
}

.about-content h2 {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
}

.about-content h2 strong {
	font-weight: 700;
}

.about-content p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

/* EXPERIENCE */
.experience {
	border-top: 1px solid var(--border);
}

.experience .section-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.exp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.exp-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	cursor: pointer;
	height: 100%;
}

.exp-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.75rem;
	transition: border-color 0.2s, background 0.2s;
	height: 100%;
}

.exp-card-link:hover .exp-card {
	border-color: rgba(255, 255, 255, 0.15);
	background: var(--bg-card-hover);
}

.exp-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.exp-card .meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.exp-card p {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.55;
}

/* PORTFOLIO */
.portfolio {
	border-top: 1px solid var(--border);
}

.portfolio .section-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.project-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.project-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
	background: var(--bg-card-hover);
}

.project-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.project-card .img-wrap {
	position: relative;
	overflow: hidden;
}

.project-card .img-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(30, 30, 30, 0.6);
	transition: opacity 0.3s;
}

.project-card:hover .img-wrap::after {
	opacity: 0;
}

.project-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	border-bottom: 1px solid var(--border);
}

.project-card .card-body {
	padding: 1.25rem;
}

.project-card .card-body h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.project-card .card-body p {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.project-tags {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-top: 0.65rem;
}

.project-tags span {
	font-size: 0.7rem;
	background: rgba(255, 255, 255, 0.06);
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	color: var(--text-muted);
	border: 1px solid var(--border);
}

/* CONTACT CTA */
.contact {
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 8rem 2rem;
}

.contact h2 {
	font-family: var(--font-serif);
	font-size: 3rem;
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: 2rem;
}

.contact h2 strong {
	font-weight: 700;
}

.contact-email {
	display: inline-block;
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 2.5rem;
}

.contact-email a {
	color: var(--text-secondary);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}

.contact-email a:hover {
	color: var(--text);
	border-color: var(--text-muted);
}

.contact-links {
	display: flex;
	gap: 2rem;
	justify-content: center;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	transition: opacity 0.2s;
}

.contact-links a:hover {
	opacity: 0.7;
}

.contact-links svg {
	flex-shrink: 0;
}

/* FOOTER */
footer {
	text-align: center;
	padding: 2rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
}

/* LIGHT THEME */
[data-theme="light"] {
	--accent: #FFCE00;
	--bg: #ffffff;
	--bg-card: #f5f5f5;
	--bg-card-hover: #ececec;
	--border: rgba(0, 0, 0, 0.1);
	--text: #111111;
	--text-muted: rgba(0, 0, 0, 0.5);
	--text-secondary: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] nav {
	background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav-links {
	background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .hero h1 {
	background: linear-gradient(90deg,
			#111111 0%,
			#111111 35%,
			#555555 50%,
			#111111 65%,
			#111111 100%);
	background-size: 600px 100%;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

[data-theme="light"] body::before {
	background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, 0.02), transparent 70%);
}

[data-theme="light"] body::after {
	opacity: 0.015;
}

[data-theme="light"] .contact-email a {
	background-image: linear-gradient(#111, #111);
}

[data-theme="light"] .project-card .img-wrap::after {
	background: rgba(240, 240, 240, 0.4);
}

[data-theme="light"] .nav-links a::after {
	background: #111;
}

[data-theme="light"] .tech-name {
	color: #111;
}

[data-theme="light"] .contact-links a {
	color: #111;
}

[data-theme="light"] .detail-header {
	background: rgba(255, 255, 255, 0.9);
}

/* SKIP LINK */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	background: var(--accent);
	color: #111;
	padding: 0.5rem 1rem;
	border-radius: 0 0 6px 6px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	z-index: 200;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
}

/* THEME TOGGLE */
.theme-toggle {
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	cursor: pointer;
	padding: 0.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s;
}

.theme-toggle:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .theme-toggle:hover {
	border-color: rgba(0, 0, 0, 0.25);
}

.theme-toggle svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* BACK TO TOP */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, border-color 0.2s;
	z-index: 90;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .back-to-top:hover {
	border-color: rgba(0, 0, 0, 0.25);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* CONTACT FORM */
.contact-form {
	max-width: 600px;
	margin: 0 auto 2rem;
	text-align: left;
}

.contact-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.contact-form .form-group {
	display: flex;
	flex-direction: column;
}

.contact-form label {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.4rem;
	font-weight: 500;
}

.contact-form input,
.contact-form textarea {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	padding: 0.7rem 1rem;
	transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
	margin-bottom: 1rem;
}

.contact-form button {
	width: 100%;
}

/* TESTIMONIALS */
.testimonials {
	border-top: 1px solid var(--border);
}

.testimonials .section-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.testimonial-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.75rem;
	transition: border-color 0.2s, background 0.2s;
}

.testimonial-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	background: var(--bg-card-hover);
}

.testimonial-card blockquote {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 1.25rem;
}

.testimonial-card blockquote::before {
	content: '\201C';
	font-family: var(--font-serif);
	font-size: 2rem;
	color: var(--accent);
	display: block;
	margin-bottom: 0.5rem;
	line-height: 1;
}

.testimonial-author {
	font-size: 0.85rem;
	font-weight: 600;
}

.testimonial-title {
	font-size: 0.75rem;
	color: var(--text-muted);
}

/* BLOG LISTING */
.blog {
	border-top: 1px solid var(--border);
}

.blog .section-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.blog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.blog-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.75rem;
	transition: border-color 0.2s, background 0.2s;
}

.blog-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	background: var(--bg-card-hover);
}

.blog-card a {
	text-decoration: none;
	color: inherit;
}

.blog-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.blog-card .blog-date {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.blog-card p {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.55;
}

/* TIMELINE */
.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border);
	transform: translateX(-50%);
}

.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	height: 0;
	background: var(--accent);
	transform: translateX(-50%);
	transition: height 0.1s linear;
}

.timeline-item {
	position: relative;
	width: 50%;
	margin-bottom: 2rem;
	padding-right: 2.5rem;
	box-sizing: border-box;
}

.timeline-item.right {
	margin-left: 50%;
	padding-right: 0;
	padding-left: 2.5rem;
}

.timeline-marker {
	position: absolute;
	right: -7px;
	top: 1.75rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--border);
	z-index: 1;
	transition: border-color 0.3s;
}

.timeline-item.right .timeline-marker {
	right: auto;
	left: -7px;
}

.timeline-item.active .timeline-marker {
	border-color: var(--accent);
	background: var(--accent);
}

.timeline-year {
	position: absolute;
	right: -4.5rem;
	top: 1.5rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 600;
	white-space: nowrap;
	text-align: center;
	width: 3rem;
}

.timeline-item.right .timeline-year {
	right: auto;
	left: -4.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	nav {
		padding: 0 1.5rem;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: var(--nav-height);
		left: 0;
		right: 0;
		background: rgba(17, 17, 17, 0.98);
		backdrop-filter: blur(12px);
		flex-direction: column;
		padding: 1.5rem;
		border-bottom: 1px solid var(--border);
		gap: 1rem;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-sep {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.hero h1 {
		font-size: 2.25rem;
	}

	.hero-avatar {
		width: 80px;
		height: 80px;
	}

	.services-grid {
		grid-template-columns: 1fr 1fr;
	}

	.about-grid {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.about-photo {
		width: 200px;
		height: 200px;
	}

	.exp-grid {
		grid-template-columns: 1fr;
	}

	.project-grid {
		grid-template-columns: 1fr 1fr;
	}

	.contact h2 {
		font-size: 2rem;
	}

	.contact-links {
		flex-direction: column;
		align-items: center;
	}

	.companies-bar .container {
		gap: 1.5rem;
	}

	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.contact-form .form-row {
		grid-template-columns: 1fr;
	}

	.timeline-year {
		display: none;
	}

	.timeline::before {
		left: 0;
		transform: none;
	}

	.timeline-line {
		left: 0;
		transform: none;
	}

	.timeline-item {
		width: 100%;
		padding-left: 2rem;
		padding-right: 0;
	}

	.timeline-item.right {
		margin-left: 0;
		padding-left: 2rem;
		padding-right: 0;
	}

	.timeline-marker {
		right: auto;
		left: -5px;
	}

	.timeline-item.right .timeline-marker {
		left: -5px;
	}
}

@media (max-width: 480px) {
	.services-grid {
		grid-template-columns: 1fr;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		font-size: 1.85rem;
	}
}
