/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
	color-scheme: light dark;

	/* Light Theme Colors */
	--bg-primary: #ffffff;
	--bg-secondary: #f8fafc;
	--bg-tertiary: #f1f5f9;
	--bg-card: #ffffff;

	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-tertiary: #64748b;
	--text-muted: #94a3b8;

	--accent-primary: #0ea5e9;
	--accent-secondary: #3b82f6;
	--accent-gradient: linear-gradient(135deg, #0ea5e9, #3b82f6);

	--border-color: #e2e8f0;
	--border-light: #f1f5f9;

	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

	--radius-sm: 0.375rem;
	--radius: 0.5rem;
	--radius-md: 0.75rem;
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;

	--transition: all 0.3s ease;
	--transition-fast: all 0.15s ease;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-primary: #0f172a;
		--bg-secondary: #111c2e;
		--bg-tertiary: #1e293b;
		--bg-card: #172033;

		--text-primary: #f8fafc;
		--text-secondary: #cbd5e1;
		--text-tertiary: #94a3b8;
		--text-muted: #64748b;

		--border-color: #334155;
		--border-light: #1e293b;

		--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
		--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.35), 0 1px 2px -1px rgb(0 0 0 / 0.3);
		--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.35), 0 2px 4px -2px rgb(0 0 0 / 0.3);
		--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.35), 0 4px 6px -4px rgb(0 0 0 / 0.3);
		--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.45), 0 8px 10px -6px rgb(0 0 0 / 0.35);
	}

}

/* Reset & Base */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family:
		'Inter',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ========================================
   Header
   ======================================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-light);
	transition: var(--transition);
}

.header.scrolled {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--shadow);
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.logo {
	font-size: 1.5rem;
	font-weight: 800;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Navigation */
.nav {
	display: flex;
	align-items: center;
}

.nav-menu {
	display: flex;
	gap: 0.25rem;
}

.nav-menu a {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	border-radius: var(--radius);
	transition: var(--transition-fast);
}

.nav-menu a:hover {
	color: var(--accent-primary);
	background: var(--bg-tertiary);
}

.nav-menu .nav-projects-cta {
	background: var(--accent-gradient);
	color: #ffffff;
	box-shadow: 0 4px 12px rgb(14 165 233 / 0.25);
}

.nav-menu .nav-projects-cta:hover {
	background: var(--accent-gradient);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgb(14 165 233 / 0.35);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--text-primary);
	transition: var(--transition);
}

/* Language Toggle */
.lang-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
	background: var(--bg-tertiary);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: var(--transition-fast);
}

.lang-toggle:hover {
	background: var(--border-color);
}

.lang-toggle i {
	color: var(--accent-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.gradient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
}

.orb-1 {
	width: 500px;
	height: 500px;
	background: linear-gradient(135deg, #0ea5e9, #3b82f6);
	top: -10%;
	left: -5%;
	animation: float 8s ease-in-out infinite;
}

.orb-2 {
	width: 400px;
	height: 400px;
	background: linear-gradient(135deg, #a855f7, #ec4899);
	bottom: -10%;
	right: -5%;
	animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
	width: 300px;
	height: 300px;
	background: linear-gradient(135deg, #10b981, #22c55e);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.2;
	animation: pulse 6s ease-in-out infinite;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
	padding: 2rem;
}

.hero-greeting {
	font-size: 1rem;
	font-weight: 500;
	color: var(--accent-primary);
	margin-bottom: 1rem;
	animation: fadeInUp 0.6s ease;
}

.hero-name {
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-surname {
	display: block;
	font-size: 0.6em;
	font-weight: 400;
	color: var(--text-secondary);
	margin-top: 0.25rem;
}

.hero-role {
	font-size: clamp(1rem, 3vw, 1.5rem);
	color: var(--text-secondary);
	margin-bottom: 2rem;
	animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 2.5rem;
	animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-social {
	display: flex;
	gap: 1rem;
	justify-content: center;
	animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-social a {
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--text-secondary);
	font-size: 1.25rem;
	transition: var(--transition);
}

.hero-social a:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: white;
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-muted);
	font-size: 1.5rem;
	animation: bounce 2s infinite;
	transition: var(--transition);
}

.scroll-indicator:hover {
	color: var(--accent-primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-xl);
	transition: var(--transition);
	cursor: pointer;
	border: none;
}

.btn-primary {
	background: var(--accent-gradient);
	color: white;
	box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);
}

.btn-secondary {
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	background: var(--bg-tertiary);
	border-color: var(--accent-primary);
}

.btn-full {
	width: 100%;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
	padding: 6rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-header h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.section-line {
	width: 80px;
	height: 4px;
	background: var(--accent-gradient);
	border-radius: 2px;
	margin: 0 auto;
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 1rem auto 0;
}

/* ========================================
   Legacy Projects Section
   ======================================== */
.legacy-projects {
	background: var(--bg-secondary);
}

.legacy-projects-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.legacy-project-card {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	min-height: 9rem;
	padding: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legacy-project-card img,
.legacy-project-card-visual {
	width: 100%;
	height: 9rem;
	padding: 1rem;
	object-fit: contain;
	background: #ffffff;
	transition: transform 0.3s ease;
}

.legacy-project-card-visual {
	display: grid;
	place-items: center;
	color: #7c3aed;
	font-size: 2.5rem;
}

.legacy-project-card-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem;
}

.legacy-project-card-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text-primary);
}

.legacy-project-demo {
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--text-secondary);
	word-break: break-word;
}

.legacy-project-card-link {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--accent-primary);
}

.legacy-project-card--agdoze {
	cursor: default;
}

.legacy-project-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.legacy-project-action {
	min-height: 2.25rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-primary);
	background: transparent;
	cursor: pointer;
}

.legacy-project-action--primary {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}

.legacy-project-action:hover {
	border-color: var(--accent-primary);
	background: rgb(14 165 233 / 0.1);
}

.legacy-project-action:focus-visible {
	outline: 3px solid var(--accent-primary);
	outline-offset: 2px;
}

.legacy-project-card:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}

.legacy-project-card.is-active {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgb(14 165 233 / 0.18);
}

.legacy-project-card:focus-visible,
.nav-menu .nav-projects-cta:focus-visible {
	outline: 3px solid var(--accent-primary);
	outline-offset: 3px;
}


.legacy-project-modal {
	position: fixed;
	inset: 0;
	width: min(75rem, calc(100% - 2rem));
	height: min(52rem, calc(100dvh - 2rem));
	margin: auto;
	padding: 0;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	color: var(--text-primary);
	background: var(--bg-card);
	box-shadow: var(--shadow-xl);
}

.legacy-project-modal[open] {
	display: flex;
	flex-direction: column;
}

.legacy-project-modal::backdrop {
	background: rgb(15 23 42 / 0.72);
}

.legacy-project-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
	padding: 0.75rem 1rem 0.75rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.legacy-project-modal-header h2 {
	font-size: 1.25rem;
}

.legacy-project-modal-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.legacy-project-external {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--accent-primary);
}

.legacy-project-close {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	color: var(--text-primary);
	background: var(--bg-card);
	cursor: pointer;
}

.legacy-project-close:focus-visible {
	outline: 3px solid var(--accent-primary);
	outline-offset: 2px;
}

.legacy-project-modal iframe {
	display: block;
	width: 100%;
	min-height: 0;
	flex: 1;
	border: 0;
	background: #ffffff;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.agdoze-comparison-modal {
	height: min(48rem, calc(100dvh - 2rem));
	overflow: auto;
}

.agdoze-comparison-modal[open] {
	display: block;
}

.agdoze-comparison-modal .legacy-project-modal-header {
	position: sticky;
	top: 0;
	z-index: 4;
	background: var(--bg-card);
}

.agdoze-comparison {
	position: relative;
	min-height: auto;
	flex: none;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	background: #fff;
	touch-action: none;
}

.agdoze-comparison-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agdoze-comparison-image--reimagined {
	clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.agdoze-comparison-range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.agdoze-comparison-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--comparison-position);
	z-index: 2;
	width: 2px;
	background: #fff;
	pointer-events: none;
}

.agdoze-comparison-divider i {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	color: #0f172a;
	background: #fff;
	transform: translate(-50%, -50%);
}

.agdoze-comparison-range:focus-visible ~ .agdoze-comparison-divider i {
	outline: 3px solid var(--accent-primary);
	outline-offset: 3px;
}

.agdoze-comparison-label {
	position: absolute;
	top: 1rem;
	z-index: 2;
	padding: 0.35rem 0.6rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: rgb(15 23 42 / 0.78);
	pointer-events: none;
}

.agdoze-comparison-label--original {
	right: 1rem;
}

.agdoze-comparison-label--reimagined {
	left: 1rem;
}

/* ========================================
   About Section
   ======================================== */
.about {
	background: var(--bg-primary);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.about-summary {
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--text-primary);
	line-height: 1.7;
}

.about-description {
	color: var(--text-secondary);
	line-height: 1.8;
}

.about-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #dcfce7;
	color: #166534;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--radius-xl);
}

.tag-dot {
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.about-highlights {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.highlight-card {
	padding: 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.highlight-card:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.highlight-icon {
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0f2fe, #dbeafe);
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

.highlight-icon i {
	font-size: 1.25rem;
	color: var(--accent-primary);
}

.highlight-card h3 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.highlight-card p {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

/* Stats */
.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 4rem;
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

.stat-item {
	text-align: center;
}

.stat-value {
	display: block;
	font-size: 3rem;
	font-weight: 800;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
	background: var(--bg-secondary);
}

.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 24px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--accent-primary), transparent);
}

.timeline-item {
	position: relative;
	padding-left: 80px;
	margin-bottom: 3rem;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-dot {
	position: absolute;
	left: 12px;
	top: 0;
	width: 24px;
	height: 24px;
	background: var(--accent-gradient);
	border: 4px solid var(--bg-secondary);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.timeline-content {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: var(--transition);
}

.timeline-content:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
}

.timeline-header {
	margin-bottom: 1rem;
}

.timeline-header h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.timeline-company {
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-primary);
}

.timeline-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.timeline-meta i {
	margin-right: 0.25rem;
}

.timeline-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.timeline-list li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--text-secondary);
	font-size: 0.9375rem;
}

.timeline-list li::before {
	content: '›';
	position: absolute;
	left: 0;
	color: var(--accent-primary);
	font-weight: 700;
}

/* ========================================
   Education Section
   ======================================== */
.education {
	background: var(--bg-primary);
}

.education-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.education-card {
	display: flex;
	gap: 1.5rem;
	padding: 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.education-card:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
}

.education-card.featured {
	background: linear-gradient(135deg, #e0f2fe, #dbeafe);
	border-color: var(--accent-primary);
}

.education-icon {
	width: 3.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-gradient);
	border-radius: var(--radius);
	flex-shrink: 0;
}

.education-icon i {
	font-size: 1.25rem;
	color: white;
}

.education-card.featured .education-icon {
	background: white;
}

.education-card.featured .education-icon i {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.education-content h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.education-school {
	font-weight: 500;
	color: var(--accent-primary);
	margin-bottom: 0.75rem;
}

.education-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.education-meta i {
	margin-right: 0.25rem;
}

.education-status {
	padding: 0.25rem 0.75rem;
	background: var(--bg-tertiary);
	border-radius: var(--radius-xl);
	font-size: 0.75rem;
	font-weight: 500;
}

/* ========================================
   Certifications Section
   ======================================== */
.certifications {
	background: var(--bg-secondary);
}

.certifications-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.certification-card {
	display: flex;
	align-items: flex-start;
	width: 100%;
	gap: 0.75rem;
	padding: 1rem;
	font: inherit;
	text-align: left;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--text-secondary);
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
}

.certification-card:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow);
}

.certification-card.is-active {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgb(14 165 233 / 0.18);
}

.certification-card i {
	color: var(--accent-primary);
	margin-top: 0.125rem;
}

.certification-card span {
	flex: 1;
}

.certification-card .certification-link-icon {
	margin-left: auto;
	font-size: 0.75rem;
}

.certification-card:focus-visible {
	outline: 3px solid var(--accent-primary);
	outline-offset: 3px;
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
	background: var(--bg-primary);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 4rem;
}

.skill-category {
	padding: 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.skill-category:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
}

.skill-header {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 1.25rem;
}

.skill-icon {
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
}

.skill-icon i {
	color: white;
	font-size: 1rem;
}

.skill-header h3 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.skill-tag {
	padding: 0.375rem 0.875rem;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: var(--radius-xl);
	transition: var(--transition-fast);
}

.skill-tag:hover {
	background: var(--accent-primary);
	color: white;
}

/* Languages */
.languages {
	text-align: center;
}

.languages h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

.languages-list {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.language-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-xl);
}

.language-item i {
	color: var(--accent-primary);
}

.language-name {
	font-weight: 600;
	color: var(--text-primary);
}

.language-level {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
	background: var(--bg-secondary);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.contact-card:hover {
	border-color: var(--accent-primary);
	box-shadow: var(--shadow-lg);
}

.contact-icon {
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0f2fe, #dbeafe);
	border-radius: var(--radius);
}

.contact-icon i {
	font-size: 1.25rem;
	color: var(--accent-primary);
}

.contact-details {
	display: flex;
	flex-direction: column;
}

.contact-label {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.contact-value {
	font-weight: 600;
	color: var(--text-primary);
}

/* Contact Visual */
.contact-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact-orbits {
	position: relative;
	width: 280px;
	height: 280px;
}

.orbit {
	position: absolute;
	border: 2px dashed var(--border-color);
	border-radius: 50%;
}

.orbit-1 {
	width: 280px;
	height: 280px;
	top: 0;
	left: 0;
	animation: spin 20s linear infinite;
}

.orbit-2 {
	width: 200px;
	height: 200px;
	top: 40px;
	left: 40px;
	animation: spin 15s linear infinite reverse;
}

.orbit-3 {
	width: 120px;
	height: 120px;
	top: 80px;
	left: 80px;
	animation: spin 10s linear infinite;
}

.orbit-center {
	position: absolute;
	top: 100px;
	left: 100px;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-gradient);
	border-radius: 50%;
}

.orbit-center i {
	font-size: 2rem;
	color: white;
}

.orbit-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.dot-1 {
	background: #0ea5e9;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce 2s infinite;
}

.dot-2 {
	background: #a855f7;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce 2s infinite 0.5s;
}

.dot-3 {
	background: #10b981;
	top: 50%;
	left: -6px;
	transform: translateY(-50%);
	animation: bounce 2s infinite 1s;
}

.dot-4 {
	background: #f59e0b;
	top: 50%;
	right: -6px;
	transform: translateY(-50%);
	animation: bounce 2s infinite 1.5s;
}

/* ========================================
   Footer
   ======================================== */
.footer {
	background: var(--bg-primary);
	border-top: 1px solid var(--border-color);
	padding: 2rem 0;
}

.footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.footer-content p {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.footer-made i {
	color: #ef4444;
}

.footer-social {
	display: flex;
	gap: 0.75rem;
}

.footer-social a {
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-tertiary);
	border-radius: var(--radius);
	color: var(--text-secondary);
	transition: var(--transition);
}

.footer-social a:hover {
	background: var(--accent-primary);
	color: white;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

@keyframes pulse {
	0%,
	100% {
		opacity: 0.2;
	}
	50% {
		opacity: 0.4;
	}
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

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

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

	.contact-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.contact-visual {
		order: -1;
	}
}

@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		top: 4rem;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(12px);
		flex-direction: column;
		padding: 1rem;
		gap: 0.5rem;
		border-bottom: 1px solid var(--border-color);
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: var(--transition);
	}

	.nav-menu.active {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.nav-menu .nav-projects-cta {
		display: block;
		text-align: center;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(4px, 4px);
	}

	.nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(4px, -4px);
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.legacy-projects-grid {
		grid-template-columns: 1fr;
	}

	.legacy-project-card {
		grid-template-columns: 7rem 1fr;
		min-height: 7rem;
	}

	.legacy-project-card img,
	.legacy-project-card-visual {
		height: 7rem;
		padding: 0.75rem;
	}

	.legacy-project-modal {
		width: calc(100% - 1rem);
		height: calc(100dvh - 1rem);
	}

	.legacy-project-modal-header {
		padding-left: 1rem;
	}

	.legacy-project-external {
		font-size: 0;
	}

	.legacy-project-external i {
		font-size: 0.875rem;
	}

	.about-highlights {
		grid-template-columns: 1fr;
	}

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

	.timeline::before {
		left: 16px;
	}

	.timeline-item {
		padding-left: 56px;
	}

	.timeline-dot {
		left: 4px;
		width: 20px;
		height: 20px;
	}

	.education-grid {
		grid-template-columns: 1fr;
	}

	.certifications-grid {
		grid-template-columns: 1fr;
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}

	.languages-list {
		flex-direction: column;
		align-items: center;
	}

	.contact-orbits {
		width: 200px;
		height: 200px;
	}

	.orbit-1 {
		width: 200px;
		height: 200px;
	}

	.orbit-2 {
		width: 140px;
		height: 140px;
		top: 30px;
		left: 30px;
	}

	.orbit-3 {
		width: 80px;
		height: 80px;
		top: 60px;
		left: 60px;
	}

	.orbit-center {
		width: 50px;
		height: 50px;
		top: 75px;
		left: 75px;
	}

	.orbit-center i {
		font-size: 1.25rem;
	}

	.footer .container {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.section {
		padding: 4rem 0;
	}

	.hero-content {
		padding: 1rem;
	}

	.timeline-content {
		padding: 1.5rem;
	}

	.stat-value {
		font-size: 2rem;
	}

	.legacy-project-card {
		grid-template-columns: 1fr;
	}

	.legacy-project-card img,
	.legacy-project-card-visual {
		height: 8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (prefers-color-scheme: dark) {
	.header {
		background: rgb(15 23 42 / 0.8);
	}

	.header.scrolled {
		background: rgb(15 23 42 / 0.96);
	}

	.tag {
		background: #163523;
		color: #bbf7d0;
	}

	.highlight-icon,
	.education-card.featured {
		background: linear-gradient(135deg, #12304b, #1e2f57);
	}

	@media (max-width: 768px) {
		.nav-menu {
			background: rgb(15 23 42 / 0.98);
		}
	}
}
