/* =========================================================
   Çağatay Gürsoy — modern site theme
   Used by: index.html
   ========================================================= */

:root {
	--bg: #0b0d12;
	--bg-soft: #11141b;
	--surface: #161a23;
	--surface-hover: #1c2129;
	--border: #262c38;
	--text: #e7e9ee;
	--text-muted: #9aa3b4;
	--text-faint: #6b7385;
	--accent: #7c5cff;
	--accent-2: #22d3ee;
	--accent-grad: linear-gradient(120deg, #7c5cff, #22d3ee);
	--radius: 14px;
	--max-width: 1100px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', 'Inter', sans-serif;
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 600;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Navigation ---------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 13, 18, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}

.site-nav .brand {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text);
	letter-spacing: .02em;
}

.site-nav .brand span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--text-muted);
	font-size: .92rem;
	font-weight: 500;
	transition: all .2s ease;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-links a.active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 1.2rem;
	padding: 6px 10px;
	cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .92rem;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface);
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

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

.btn-primary {
	background: var(--accent-grad);
	border: none;
	color: #0b0d12;
}

.btn-primary:hover { color: #0b0d12; opacity: .92; }

/* ---------- Hero ---------- */

.hero {
	padding: 96px 0 72px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto -10%;
	height: 500px;
	background: radial-gradient(60% 60% at 50% 30%, rgba(124, 92, 255, .22), transparent 70%);
	pointer-events: none;
}

.eyebrow {
	display: inline-block;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--accent-2);
	font-weight: 600;
	margin-bottom: 18px;
}

.hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	max-width: 820px;
	margin-bottom: 20px;
}

.hero-lede {
	font-size: 1.1rem;
	max-width: 620px;
	color: var(--text-muted);
	margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; position: relative; scroll-margin-top: 68px; }
.section + .section { border-top: 1px solid var(--border); }

.section-head { margin-bottom: 40px; max-width: 680px; }
.section-head .kicker {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--text-faint);
	font-weight: 600;
	margin-bottom: 10px;
	display: block;
}

/* ---------- Cards / grid ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

a.card:hover, .card.interactive:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	background: var(--surface-hover);
}

.card .icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--accent-grad);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0b0d12;
	font-size: 1.1rem;
	margin-bottom: 18px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- Quote block ---------- */

.quote-block {
	border-left: 3px solid var(--accent);
	padding: 4px 0 4px 24px;
	font-style: italic;
	color: var(--text);
	font-size: 1.05rem;
	margin: 0 0 24px;
}

.quote-block cite { display: block; margin-top: 10px; font-style: normal; font-size: .85rem; color: var(--text-faint); }

/* ---------- Profile / who am I ---------- */

.profile-header {
	display: flex;
	gap: 36px;
	align-items: center;
	flex-wrap: wrap;
}

.profile-photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--border);
	flex-shrink: 0;
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-photo--square {
	width: 220px;
	height: 220px;
	border-radius: var(--radius);
}

.inceptio-row {
	display: flex;
	align-items: flex-start;
	gap: 36px;
}

.inceptio-text { flex: 1; min-width: 0; }

.inceptio-row .profile-photo--square { flex-shrink: 0; }

@media (max-width: 720px) {
	.inceptio-row { flex-direction: column-reverse; align-items: center; }
}

.profile-meta p { margin: 4px 0; font-size: .92rem; color: var(--text-muted); }

.social-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

.social-row a {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 1rem;
}

.social-row a:hover { color: var(--text); border-color: var(--accent); }

.social-row svg { width: 16px; height: 16px; display: block; }

/* Timeline (experience / education) */

.timeline-item {
	position: relative;
	padding: 0 0 36px 28px;
	border-left: 2px solid var(--border);
}

.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }

.timeline-item::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent-grad);
}

.timeline-item h4 { margin-bottom: 2px; font-size: 1.05rem; }
.timeline-item .org { color: var(--accent-2); font-weight: 600; font-size: .95rem; margin-bottom: 4px; display: block; }
.timeline-item .dates { color: var(--text-faint); font-size: .82rem; margin-bottom: 12px; display: block; }
.timeline-item p:last-child { margin-bottom: 0; }

/* ---------- GitHub Pages projects ---------- */

.project-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.project-card .project-name {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.project-card .project-name i { color: var(--text-faint); font-size: .8rem; }
.project-card:hover .project-name i { color: var(--accent-2); }

.project-card .project-desc { font-size: .9rem; color: var(--text-muted); margin: 0; }

.project-card .project-tag {
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--text-faint);
	font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 36px 0;
	color: var(--text-faint);
	font-size: .85rem;
	text-align: center;
}

.site-footer a { color: var(--text-muted); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.grid-3 { grid-template-columns: 1fr; }
	.grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.nav-toggle { display: inline-flex; }
	.nav-links {
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: var(--bg-soft);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		padding: 12px;
		display: none;
	}
	.nav-links.open { display: flex; }
	.nav-links a { width: 100%; }
	.profile-header { flex-direction: column; text-align: center; }
	.social-row { justify-content: center; }
}
