﻿/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* Root */
:root {
	--bg-main: #000000;
	--bg-elevated: #272727;
	--bg-secondary: #373737;
	--text-main: #F7E7D3;
	--text-muted: #B8B8B8;
	--accent: #F26A1B;
	--accent-soft: #F2A65A;
	--radius: 10px;
	--max-width: 1200px;
	--transition: 0.2s ease;
}

/* Global */
*, *::before, *::after {
	font-family: 'Outfit', sans-serif;
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg-main);
	color: var(--text-main);
	line-height: 1.5;
}

button {
	line-height: 1.5;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

main {
	padding-top: 74px;
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 74px;
	background: var(--bg-main);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 3px solid var(--bg-secondary);
	padding: 8px 20px;
	z-index: 1000;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-img {
	width: 32px;
	height: 32px;
}

.brand {
	font-weight: 600;
	letter-spacing: 0.02em;
	font-size: 1rem;
}

.nav-contact {
	display: flex;
	gap: 5px;
	flex-direction: column;
}

.nav-links {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.contact-label {
	line-height: 1.0;
	font-size: 0.8rem;
	text-align: right;
}

.nav-links a {
	color: var(--accent)
}

.nav-links a:hover {
	color: var(--accent-soft);
}

/* Hero */
.hero {
	padding: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--bg-main);
}

.hero-content {
	max-width: 600px;
	margin: 0 auto;
}

.hero h1 {
	margin-top: 0;
	padding: 0;
	font-size: 2.2rem;
	margin-bottom: 0;
	color: var(--accent);
}

.hero p {
	font-size: 1rem;
	color: var(--text-muted);
	margin: 0 auto 20px;
	max-width: 420px;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	padding: 10px 20px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	border: 1px solid transparent;
	transition: var(--transition);
}

.btn.primary {
	background: var(--accent);
	color: #000;
}

.btn.primary:hover {
	background: var(--accent-soft);
}

.btn.secondary {
	background: transparent;
	border-color: var(--accent);
	color: var(--text-main);
}

.btn.secondary:hover {
	background: var(--bg-elevated);
}

/* Sections */
.section {
	padding: 60px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.section.projects, .section.about, .section.contact {
	border-top: 3px solid var(--bg-secondary);
}

.section-header {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	text-align: center;
}

.section-header h2 {
	font-size: 1.6rem;
	margin-bottom: 8px;
	font-weight: 600;
}

.section-header p {
	color: var(--text-muted);
	margin: 0;
}

/* Projects */
.project-grid {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	justify-items: center;
	justify-content: center;
}

.project-card {
	margin-top: 10px;
	background: var(--bg-elevated);
	padding: 20px;
	border-radius: var(--radius);
	width: 100%;
	max-width: 340px;
	text-align: center;
}

.project-card h3 {
	margin: 0;
	padding: 0;
}

.project-card p {
	color: var(--text-muted);
	margin-bottom: 16px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 16px;
}

.tags span {
	font-size: 0.75rem;
	padding: 4px 8px;
	border-radius: 5px;
	background: var(--bg-main);
}

.project-more {
	padding: 5px 10px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.8rem;
	cursor: pointer;
	background: var(--accent);
	transition: var(--transition);
	border: 1px solid transparent;
}

.project-more:hover {
	background: var(--accent-soft);
}

/* About */
.about-content {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.about-content p {
	color: var(--text-muted);
	margin-bottom: 16px;
}

.skills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	margin-top: 24px;
}

.skills-group h3 {
	margin-bottom: 8px;
	font-size: 1rem;
}

.skills-group ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.skills-group li {
	font-size: 0.9rem;
	margin-bottom: 4px;
}

/* Contact */
.contact-actions {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.socials {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 12px;
}

.socials a {
	color: var(--text-muted);
	transition: opacity var(--transition);
}

.socials a:hover {
	opacity: 1;
}

/* Footer */
.footer {
	padding: 5px;
	text-align: center;
	background: var(--bg-main);
	border-top: 3px solid var(--bg-secondary);
	color: var(--text-muted);
	font-size: 1rem;
	opacity: 0.7;
}

/* Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.modal-backdrop.active {
	display: flex;
}

.modal {
	background: var(--bg-elevated);
	border-radius: var(--radius);
	padding: 20px 24px;
	max-width: 480px;
	width: 90%;
	position: relative;
	border: 1px solid #1A1A1A;
}

.modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	color: var(--text-main);
	font-size: 1.4rem;
	cursor: pointer;
}