﻿/* Root */
:root {
	--bg: #0D0D0D;
	--surface: #111;
	--surface-light: #161616;

	--border: rgba(255, 255, 255, 0.08);

	--text-primary: #FFFFFF;
	--text-secondary: #B3B3B3;
	--text-muted: #6A6A6A;

	--accent: #FF7A2F;

	--radius: 6px;
	--radius-pill: 22px;

	--max-width: 1100px;

	--space-section: 100px;
	--space-card: 24px;
}

/* Global */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--bg);
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	overflow-x: hidden;
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;

	height: 72px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);

	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 0 24px;
	z-index: 1000;
	border-radius: 0 0 var(--radius) var(--radius);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-img {
	width: 32px;
	height: 32px;
	border-radius: var(--radius);
}

.brand {
	font-weight: 600;
	letter-spacing: 0.05em;
	font-size: 0.95rem;
}

.nav-contact {
	display: flex;
	align-items: center;
	gap: 16px;
}

.contact-label {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.3;
}

.nav-links {
	display: flex;
	gap: 12px;
}

.nav-links a {
	color: var(--text-secondary);
	font-size: 1.3rem;
	transition: 0.2s ease;
}

.nav-links a:hover {
	color: var(--accent);
}

/* Hero */
.hero {
	padding: 160px 20px var(--space-section);
	text-align: center;
}

.hero h1 {
	font-size: 3.2rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.hero p {
	font-size: 1.15rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 28px;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
}

/* Buttons */
.btn {
	padding: 12px 26px;
	border-radius: var(--radius-pill);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s ease;
	text-decoration: none;
	border: none;
}

.btn.primary, .btn-accent {
	background: var(--accent);
	color: #000;
}

.btn.primary:hover, .btn-accent:hover {
	background: #e56d28;
}

.btn.ghost {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-secondary);
}

.btn.ghost:hover {
	border-color: var(--text-primary);
	color: var(--text-primary);
}

/* Sections */
.section {
	max-width: var(--max-width);
	margin: 0 auto var(--space-section);
	padding: 0 20px;
}

.section-header h2 {
	font-size: 1.8rem;
	margin-bottom: 8px;
}

.section-header p {
	color: var(--text-secondary);
}

/* Projects */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, max-content));
	gap: 24px;
	justify-content: center;
	justify-items: center;
}

.project-card {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: var(--radius);

	padding: var(--space-card);
	width: 100%;
	max-width: 340px;

	transition: 0.2s ease;
}

.project-card:hover {
	border-color: rgba(255, 255, 255, 0.14);
}

.project-card h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
}

.project-card p {
	margin: 0 0 16px;
	color: var(--text-secondary);
}

.tags span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 0.85rem;
	margin-right: 6px;
	margin-bottom: 6px;
}

.project-more {
	padding: 8px 18px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-primary);
	font-size: 0.9rem;
	cursor: pointer;
	transition: 0.2s ease;
}

.project-more:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* About Section */
.about-content {
	max-width: 800px;
	margin: 0 auto;
	color: var(--text-secondary);
	line-height: 1.6;
}

.skills {
	display: flex;
	gap: 40px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.skills-group h3 {
	margin-bottom: 10px;
}

.skills-group ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.skills-group li {
	margin-bottom: 6px;
}

/* Footer */
.footer {
	margin-top: var(--space-section);
	padding: 24px;
	text-align: center;

	background: var(--surface);
	border-top: 1px solid var(--border);
	border-radius: var(--radius) var(--radius) 0 0;

	color: var(--text-secondary);
}

/* Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
	z-index: 1500;
}

.modal-backdrop.active {
	display: flex;
}

.modal {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: var(--radius);

	padding: 28px;
	max-width: 520px;
	width: 100%;
	position: relative;

	transform: scale(0.96);
	opacity: 0;
	transition: 0.2s ease;
}

.modal-backdrop.active .modal {
	transform: scale(1);
	opacity: 1;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	font-size: 1.4rem;
	cursor: pointer;
	transition: 0.2s ease;
}

.modal-close:hover {
	color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.4rem;
	}

	.hero-actions {
		flex-direction: column;
	}

	.skills {
		flex-direction: column;
	}

	.nav-contact {
		display: none;
	}
}