/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
	--bg-color: #ffffff;
	--card-bg: #ffffff;
	--text-primary: #000000;
	--text-secondary: #4b5563;
	/* Gray 600 */
	--accent-color: #000000;
	--accent-glow: rgba(0, 0, 0, 0.1);

	--font-main: 'Outfit', sans-serif;

	--transition-fast: 0.3s ease;
	--border-radius: 4px;
	/* Sharper corners for minimalism */
}

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

body {
	font-family: var(--font-main);
	background-color: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition-fast);
}

ul {
	list-style: none;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	padding: 1.5rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	/* White with transparency */
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid #e5e5e5;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.logo span {
	color: var(--accent-color);
}

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

.nav-links a {
	color: var(--text-secondary);
	font-weight: 500;
}

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

.hamburger {
	display: none;
	cursor: pointer;
}

.bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: var(--text-primary);
	transition: var(--transition-fast);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10%;
	position: relative;
	overflow: hidden;
}

.hero-content {
	max-width: 600px;
	z-index: 2;
}

.subtitle {
	color: var(--accent-color);
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.title {
	font-size: 4rem;
	line-height: 1.1;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

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

.description {
	color: var(--text-secondary);
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	max-width: 450px;
}

.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
}

.btn-primary {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--text-primary);
	transition: all 0.3s ease;
}

.btn-primary:hover {
	background: var(--text-primary);
	color: var(--bg-color);
	box-shadow: none;
}

/* Button styles are good, adding btn-sm for language toggle */
.btn-sm {
	padding: 0.4rem 0.8rem;
	font-size: 0.8rem;
	background: transparent;
	border: 1px solid var(--text-secondary);
	color: var(--text-secondary);
	margin-right: 1rem;
}

.btn-sm:hover {
	border-color: var(--text-primary);
	color: var(--text-primary);
}

/* Abstract Background Shape */
/* Abstract Background Shape - Removed for minimalism */
.circle-gradient {
	display: none;
}

.hero-img {
	width: 300px;
	height: auto;
	filter: grayscale(100%);
	transition: transform 0.3s ease;
}

.hero-img:hover {
	transform: rotate(5deg) scale(1.05);
}

/* =========================================
   4. SECTIONS GENERAL
   ========================================= */
.section {
	padding: 5rem 10%;
}

.section-title {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
	position: relative;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: var(--accent-color);
	margin: 10px auto 0;
	border-radius: 2px;
}

/* =========================================
   5. ABOUT & SKILLS
   ========================================= */
/* =========================================
   5. ABOUT & SKILLS
   ========================================= */
.about-content {
	display: flex;
	justify-content: center;
	text-align: center;
}

.about-text {
	max-width: 800px;
}

/* About Grid Layout */
.about-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

.about-card {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(10px);
	padding: 2rem;
	border: 1px solid #e5e5e5;
	border-radius: var(--border-radius);
	transition: var(--transition-fast);
	height: 100%;
}

.about-card:hover {
	border-color: var(--accent-color);
	transform: translateY(-5px);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
	border-bottom: 2px solid var(--accent-glow);
	padding-bottom: 0.5rem;
	display: inline-block;
}

.about-card p {
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
}

.skills-grid {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.skill-item {
	background: transparent;
	padding: 0.8rem 1.5rem;
	border-radius: 50px;
	border: 1px solid #e5e5e5;
	color: var(--text-secondary);
	transition: var(--transition-fast);
}

.skill-item:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

/* Timeline Styles */
.timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #e5e5e5;
	transform: translateX(-50%);
}

.timeline-item {
	position: relative;
	margin-bottom: 3rem;
	width: 100%;
}

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

.timeline-content {
	position: relative;
	width: 45%;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: var(--border-radius);
	transition: var(--transition-fast);
}

.timeline-content:hover {
	border-color: var(--accent-color);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
	margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
	margin-right: auto;
}

/* Dot on the line */
.timeline-dot {
	position: absolute;
	left: 50%;
	top: 1.5rem;
	width: 16px;
	height: 16px;
	background: #fff;
	border: 2px solid var(--accent-color);
	border-radius: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.timeline-date {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.timeline-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.2rem;
}

.timeline-place {
	font-size: 1rem;
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-weight: 600;
}

.timeline-list {
	list-style: none;
	padding-left: 0;
}

.timeline-list li {
	position: relative;
	padding-left: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.timeline-list li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--accent-color);
}

@media (max-width: 768px) {
	.timeline::before {
		left: 20px;
	}

	.timeline-content {
		width: calc(100% - 50px);
		margin-left: 50px !important;
	}

	.timeline-dot {
		left: 20px;
	}
}

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

.project-card {
	background: transparent;
	border-radius: var(--border-radius);
	overflow: hidden;
	transition: var(--transition-fast);
	border: 1px solid #e5e5e5;
	position: relative;
}

.project-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-color);
}

.project-image {
	height: 200px;
	background: #2d3748;
	position: relative;
	overflow: hidden;
}

.placeholder-img {
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, #1e293b, #334155);
	transition: transform 0.5s ease;
}

.project-card:hover .placeholder-img {
	transform: scale(1.1);
}

.project-info {
	padding: 1.5rem;
}

.project-info h3 {
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.project-info p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.project-tags {
	margin-bottom: 1.5rem;
	display: flex;
	gap: 0.5rem;
}

.project-tags span {
	font-size: 0.8rem;
	background: transparent;
	color: var(--text-secondary);
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
}

.btn-link {
	font-size: 0.9rem;
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #333;
	text-underline-offset: 4px;
}

.btn-link:hover {
	text-decoration-color: var(--text-primary);
}

/* Animation Utilities */
.hidden-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.show-animate {
	opacity: 1;
	transform: translateY(0);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
	padding: 2rem;
	text-align: center;
	color: var(--text-secondary);
	font-size: 0.9rem;
	border-top: 1px solid #e5e5e5;
}

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

.social-links a {
	color: var(--text-secondary);
	font-size: 1.2rem;
}

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

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
	.navbar {
		padding: 1.5rem 2rem;
	}

	.nav-links {
		position: absolute;
		top: 70px;
		right: 0;
		height: calc(100vh - 70px);
		background: var(--bg-color);
		flex-direction: column;
		width: 100%;
		align-items: center;
		padding-top: 3rem;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		border-top: 1px solid rgba(255, 255, 255, 0.05);
	}

	.nav-links.active {
		transform: translateX(0);
	}

	.hamburger {
		display: block;
	}

	.hamburger.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.hamburger.active .bar:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.hero {
		padding-top: 80px;
		text-align: center;
		flex-direction: column;
		justify-content: center;
	}

	.title {
		font-size: 3rem;
	}

	.circle-gradient {
		top: 20%;
		right: 50%;
		transform: translateX(50%);
		width: 300px;
		height: 300px;
	}

	.section {
		padding: 3rem 5%;
	}
}

/* =========================================
   9. ARTICLE PAGE
   ========================================= */
.article-content {
	max-width: 800px;
	margin: 0 auto;
	color: var(--text-secondary);
	font-size: 1.1rem;
	line-height: 1.8;
}

.article-content h2 {
	color: var(--text-primary);
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.8rem;
}

.article-content p {
	margin-bottom: 1.5rem;
}

.article-header {
	text-align: center;
	margin-bottom: 3rem;
}

.article-meta {
	color: var(--accent-color);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	display: block;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Nav Active State */
.nav-links a.active {
	color: var(--accent-color);
}