/*
:root {
	--bg-primary: #0f172a;
	--bg-secondary: #1e293b;
	--bg-card: #1e293b;
	--text-primary: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--accent: #3b82f6;
	--accent-hover: #2563eb;
	--shadow: #0000004D;
	--border: #334155;
}
*/

:root {
	--bg-primary: #0b1220;
	--bg-secondary: #121c2f;
	--bg-card: #16233a;
	--text-primary: #e6edf5;
	--text-secondary: #b8c4d6;
	--text-muted: #7f8fa8;
	--accent: #4f9cff;
	--accent-hover: #2f7de8;
	--border: #263553;
	--shadow: #0206178C;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

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

.section {
	padding: 5rem 0;
}

.section-title {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
	color: var(--text-primary);
}

.nav {
	position: sticky;
	top: 0;
	background-color: var(--bg-primary);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid var(--border);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 3rem;
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--accent);
}

.lang-toggle {
	background: none;
	border: 1px solid var(--border);
	color: var(--text-secondary);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

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

.lang-option {
	transition: color 0.3s ease;
}

.lang-option.active {
	color: var(--accent);
	font-weight: bold;
}

.lang-separator {
	margin: 0 0.25rem;
}

.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
	position: relative;
}

.hero-content {
	max-width: 800px;
}

.hero h1 {
	font-size: 4rem;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--text-primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tagline {
	font-size: 1.5rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.cta-button {
	display: inline-block;
	background-color: var(--accent);
	color: white;
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.cta-button:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px var(--shadow);
}

.scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-muted);
	text-decoration: none;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.scroll-hint:hover {
	opacity: 1;
	color: var(--accent);
	transform: translateX(-50%) translateY(4px);
}

.scroll-arrow {
	font-size: 2rem;
	display: block;
	animation: bounce 2s infinite;
}

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

.project-card {
	background-color: var(--bg-card);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--border);
	transition: all 0.4s ease;
	cursor: pointer;
	position: relative;
}

.project-card:hover {
	box-shadow: 0 15px 30px var(--shadow);
	border-color: var(--accent);
}

.project-card:hover {
	transform: translateY(-4px) scale(1.02);
}

.project-card h3 {
	color: var(--text-primary);
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.project-card p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.tech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.tech-tag {
	background-color: var(--bg-primary);
	color: var(--accent);
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-size: 0.85rem;
	border: 1px solid var(--border);
}

.project-links {
	display: flex;
	gap: 1rem;
}

.project-links a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.project-links a:hover {
	color: var(--accent-hover);
}

.project-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.project-modal.active {
	opacity: 1;
	pointer-events: all;
}

.project-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	cursor: pointer;
}

.project-modal-content {
	position: relative;
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	max-width: 800px;
	max-height: 85vh;
	width: 90%;
	overflow-y: auto;
	box-shadow: 0 25px 50px var(--shadow);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.project-modal.active .project-modal-content {
	transform: scale(1);
}

.project-modal-close {
	position: sticky;
	top: 0;
	left: 100%;
	margin-left: -3rem;
	margin-top: 1rem;
    margin-right: 1rem;
	margin-bottom: -2rem;
	background: var(--bg-primary);
	border: 1px solid var(--border);
	color: var(--text-muted);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	transition: all 0.3s ease;
	z-index: 10;
}

.project-modal-close:hover {
	background: var(--bg-secondary);
	color: var(--accent);
	border-color: var(--accent);
	transform: rotate(90deg);
}

.project-modal-body {
	padding: 2rem;
}

.project-modal-body h3 {
	color: var(--text-primary);
	font-size: 2rem;
	margin-bottom: 1rem;
}

.project-modal-body > p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
}

.project-modal-body .tech-stack {
	margin-bottom: 2rem;
}

.project-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.project-section:last-of-type {
	border-bottom: none;
}

.project-section h4 {
	color: var(--accent);
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
}

.project-section p {
	color: var(--text-secondary);
	line-height: 1.7;
	margin: 0;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.gallery-grid img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	transition: transform 0.3s ease;
}

.gallery-grid img:hover {
	transform: scale(1.05);
}

.about-content {
	max-width: 900px;
	margin: 0 auto;
}

.about-text p {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	line-height: 1.8;
}

.skills {
	margin-top: 3rem;
}

.skills h3 {
	font-size: 2rem;
	margin-bottom: 2rem;
	text-align: center;
}

.skill-category {
	margin-bottom: 2rem;
}

.skill-category h4 {
	color: var(--accent);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

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

.skill-tag {
	background-color: var(--bg-card);
	color: var(--text-primary);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.skill-tag:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

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

.timeline::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: var(--border);
}

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

.timeline-marker {
	position: absolute;
	left: 11px;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--accent);
	border: 3px solid var(--bg-primary);
}

.timeline-content h3 {
	color: var(--text-primary);
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.timeline-content h4 {
	color: var(--accent);
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.timeline-content .period {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.timeline-content p {
	color: var(--text-secondary);
	line-height: 1.8;
}

.contact-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.contact-content p {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.social-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.social-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--bg-card);
	color: var(--text-primary);
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	text-decoration: none;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.social-link:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px var(--shadow);
}

.social-icon {
	font-size: 1.5rem;
}

.footer {
	background-color: var(--bg-secondary);
	padding: 2rem 0;
	text-align: center;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
}

.footer p {
	margin: 0;
}
