/* ————— Samina Elyasi — portfolio ————— */

:root {
	--bg: #111013;
	--bg-soft: #19181c;
	--ink: #ece7df;
	--ink-dim: #a89f93;
	--accent: #c98f4e;      /* warm brass */
	--accent-soft: #8a6238;
	--line: rgba(236, 231, 223, 0.14);
	--font-en: "Cormorant Garamond", "Times New Roman", serif;
	--font-fa: "Vazirmatn", Tahoma, sans-serif;
	--pad: clamp(1.25rem, 4vw, 4rem);
}

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

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-en);
	font-size: 1.125rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

html[lang="fa-IR"] body,
html[dir="rtl"] body { font-family: var(--font-fa); font-size: 1.0625rem; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ————— header ————— */

.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.9rem var(--pad);
	background: linear-gradient(to bottom, rgba(17, 16, 19, 0.92), rgba(17, 16, 19, 0.75) 70%, transparent);
	backdrop-filter: blur(6px);
}

.brand { display: flex; flex-direction: column; line-height: 1.15; margin-inline-end: auto; }
.brand-en { font-size: 1.35rem; letter-spacing: 0.08em; }
.brand-fa { font-family: var(--font-fa); font-size: 0.8rem; color: var(--ink-dim); }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
	font-size: 0.95rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-dim);
	transition: color 0.25s;
}
html[dir="rtl"] .site-nav a { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.site-nav a:hover { color: var(--accent); }

.lang-toggle {
	font-family: var(--font-fa);
	font-size: 0.9rem;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.35rem 0.95rem;
	cursor: pointer;
	transition: border-color 0.25s, color 0.25s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ————— hero ————— */

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-media {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center 30%;
	filter: saturate(0.85) contrast(1.05);
	animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-veil {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 50% 90%, rgba(17,16,19,0.35), transparent 55%),
		linear-gradient(to bottom, rgba(17,16,19,0.55), rgba(17,16,19,0.35) 45%, var(--bg) 96%);
}
.hero-inner { position: relative; text-align: center; padding: 6rem var(--pad) 4rem; }
.hero-kicker {
	font-size: 0.95rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--accent);
}
html[dir="rtl"] .hero-kicker { letter-spacing: 0.1em; }
.hero-title {
	font-size: clamp(3rem, 10vw, 6.5rem);
	font-weight: 500;
	line-height: 1.05;
	margin: 0.5rem 0 1rem;
	text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero-sub { max-width: 34em; margin: 0 auto 2.2rem; color: var(--ink-dim); font-size: 1.2rem; font-style: italic; }
html[dir="rtl"] .hero-sub { font-style: normal; }
.hero-cta {
	display: inline-block;
	border: 1px solid var(--accent-soft);
	color: var(--accent);
	padding: 0.7rem 2.3rem;
	border-radius: 999px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.85rem;
	transition: background 0.3s, color 0.3s;
}
html[dir="rtl"] .hero-cta { letter-spacing: 0; font-size: 1rem; }
.hero-cta:hover { background: var(--accent); color: #16130e; }
.hero-scroll {
	position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
	color: var(--ink-dim); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ————— sections ————— */

section, footer.contact { padding: clamp(4rem, 9vw, 7rem) var(--pad); }

.section-title {
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	font-weight: 500;
	margin-bottom: 0.6em;
	position: relative;
	display: inline-block;
}
.section-title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -0.25em;
	width: 2.2em;
	height: 1px;
	background: var(--accent);
}
.section-lede { color: var(--ink-dim); max-width: 46em; margin-bottom: 2.5rem; }

/* ————— gallery ————— */

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.filter {
	font-family: inherit;
	font-size: 0.92rem;
	letter-spacing: 0.06em;
	color: var(--ink-dim);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.45rem 1.25rem;
	cursor: pointer;
	transition: all 0.25s;
}
.filter:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter.is-active { color: #16130e; background: var(--accent); border-color: var(--accent); }

.grid { columns: 4 260px; column-gap: 1.1rem; }
.card {
	break-inside: avoid;
	margin-bottom: 1.1rem;
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-soft);
	transform: translateY(0);
	transition: transform 0.35s ease, opacity 0.35s ease;
}
.card.is-hidden { display: none; }
.card-link { position: relative; display: block; }
.card img { width: 100%; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9); }
.card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.card figcaption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 1.6rem 0.9rem 0.65rem;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: var(--ink);
	background: linear-gradient(to top, rgba(10, 9, 11, 0.85), transparent);
	opacity: 0;
	transition: opacity 0.35s;
}
.card:hover figcaption { opacity: 1; }

/* ————— about ————— */

.about { background: var(--bg-soft); }
.about-text { max-width: 52em; }
.about-text p { margin-bottom: 1.1em; color: var(--ink-dim); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.2em; }

/* ————— contact ————— */

.contact { text-align: center; border-top: 1px solid var(--line); }
.contact .section-title::after { inset-inline-start: 50%; transform: translateX(-50%); }
.contact p { color: var(--ink-dim); }
.contact-mail {
	display: inline-block;
	margin: 1.2rem 0 2.5rem;
	font-size: clamp(1.2rem, 3.5vw, 1.7rem);
	color: var(--accent);
	border-bottom: 1px solid var(--accent-soft);
	transition: color 0.25s;
}
.contact-mail:hover { color: var(--ink); }
.colophon { font-size: 0.85rem; }

/* ————— lightbox ————— */

.lightbox {
	position: fixed; inset: 0; z-index: 60;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	background: rgba(10, 9, 11, 0.94);
	padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lb-img {
	grid-column: 2;
	max-height: 84vh;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 4px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-cap {
	position: absolute;
	bottom: 1.4rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--ink-dim);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
}
.lb-close, .lb-prev, .lb-next {
	background: none;
	border: 0;
	color: var(--ink-dim);
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.5rem 0.9rem;
	transition: color 0.2s;
	z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); }
.lb-close { position: absolute; top: 1rem; inset-inline-end: 1.2rem; }

/* ————— responsive ————— */

@media (max-width: 760px) {
	.site-nav {
		position: fixed;
		top: 0;
		inset-inline-end: 0;
		height: 100svh;
		width: min(75vw, 320px);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2.2rem;
		background: rgba(17, 16, 19, 0.97);
		transform: translateX(105%);
		transition: transform 0.35s ease;
	}
	html[dir="rtl"] .site-nav { transform: translateX(-105%); }
	.site-nav.is-open { transform: translateX(0) !important; }
	.site-nav a { font-size: 1.15rem; }
	.nav-burger { display: block; z-index: 50; }
	.grid { columns: 2 150px; column-gap: 0.7rem; }
	.card { margin-bottom: 0.7rem; }
	.card figcaption { opacity: 1; font-size: 0.75rem; }
	.lightbox { padding: 0.6rem; grid-template-columns: 1fr; }
	.lb-prev, .lb-next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background: rgba(17,16,19,0.55);
		border-radius: 999px;
	}
	.lb-prev { left: 0.5rem; }
	.lb-next { right: 0.5rem; }
}
