:root {
	--profile-bg: #f6f6f7;
	--profile-surface: linear-gradient(
		var(--angle),
		oklab(98.9% 0.005 0.002),
		oklab(96.1% 0 0),
		oklab(92.5% 0 0),
		oklab(88.5% 0 0),
		oklab(84.5% 0 0)
	);
	--profile-stroke: rgba(10, 10, 10, 0.08);
	--profile-fg: #0b0c0f;
	--profile-muted: #5b5e6a;
	--profile-accent: #9a47ff;
	--profile-accent-soft: rgba(154, 71, 255, 0.16);
	--profile-radius: 28px;
	--profile-shadow: 0 24px 80px rgba(11, 12, 15, 0.12);
	--profile-gradient: linear-gradient(
		135deg,
		rgba(154, 71, 255, 0.16),
		rgba(44, 62, 255, 0.1)
	);
}

html.dark {
	--profile-bg: #050508;
	--profile-surface: rgba(10, 10, 15, 0.7);
	--profile-stroke: rgba(255, 255, 255, 0.08);
	--profile-fg: #f5f5ff;
	--profile-muted: #a0a3b3;
	--profile-accent: #b783ff;
	--profile-accent-soft: rgba(183, 131, 255, 0.2);
	--profile-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	--profile-gradient: linear-gradient(
		135deg,
		rgba(183, 131, 255, 0.18),
		rgba(68, 122, 255, 0.12)
	);
}

body.profile-page {
	min-height: 100vh;
	background: radial-gradient(
			circle at top,
			rgba(154, 71, 255, 0.08),
			transparent 45%
		),
		var(--profile-bg);
	color: var(--profile-fg);
	font-family: "Space Grotesk", "IRANSANS", "Inter", system-ui, -apple-system,
		BlinkMacSystemFont, sans-serif;
	line-height: 1.6;
	letter-spacing: -0.01em;
	position: relative;
	direction: rtl;
	text-align: right;
}

.profile-page * {
	box-sizing: border-box;
}

.profile-header {
	max-width: 1200px;
	margin: 32px auto 0;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

.brand-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--profile-fg);
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(16px);
	box-shadow: 0 10px 40px rgba(11, 12, 15, 0.08);
	transition: transform 220ms ease, border-color 220ms ease;
	direction: ltr;
}

html.dark .brand-pill {
	background: rgba(15, 15, 20, 0.65);
}

.brand-pill:hover {
	transform: translateY(-3px);
	border-color: var(--profile-accent-soft);
}

.brand-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--profile-accent);
	box-shadow: 0 0 14px rgba(154, 71, 255, 0.5);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.ghost-link {
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--profile-muted);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: color 200ms ease, border-color 200ms ease;
	direction: ltr;
}

.ghost-link:hover {
	color: var(--profile-fg);
	border-color: currentColor;
}

.theme-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(14px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

html.dark .theme-toggle {
	background: rgba(12, 12, 18, 0.65);
}

.theme-toggle:hover {
	transform: translateY(-2px);
	border-color: var(--profile-accent-soft);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
	stroke: var(--profile-fg);
	fill: none;
}

.theme-toggle__icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 250ms ease, transform 250ms ease;
}

.theme-toggle__icon--sun {
	opacity: 1;
	transform: scale(1);
}

html.dark .theme-toggle__icon--sun {
	opacity: 0;
	transform: scale(0.6);
}

html.dark .theme-toggle__icon--moon {
	opacity: 1;
	transform: scale(1);
}

.profile-main {
	/* max-width: 1200px; */
	margin: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 15px;
	position: relative;
	z-index: 1;
}

.profile-main section {
	background: var(--profile-surface);
	border: 1px solid var(--profile-stroke);
	border-radius: 8px;
	padding: clamp(32px, 5vw, 52px);
	backdrop-filter: blur(30px);
	box-shadow: var(--profile-shadow);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

html.dark .profile-main section {
	background: linear-gradient(
		90deg,
		var(--bg-secondary) 0%,
		var(--bg-tertiary) 100%
	);
}

.profile-main section::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	mix-blend-mode: soft-light;
	opacity: 0.4;
	pointer-events: none;
}

.hero-panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(32px, 4vw, 30px);
	min-height: 480px;
	align-items: center;
}
@media screen and (min-width: 768px) {
	.hero-panel{
		padding: unset !important;
	}
}
.hero-panel.is-visible {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background-color: #f8f8f8;
	background-image: url("../media/shape/teams%20member.svg"),
		linear-gradient(90deg, #f8f8f8 0%, #d7d7d7 100%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover, cover;
}

html.dark .hero-panel.is-visible {
	background-color: #08080c;
	background-image: url("../media/shape/teams%20member%20dark.svg"),
		linear-gradient(90deg, #0b0b0f 0%, #1a1a22 100%);
}

.hero-panel.is-visible > .eyebrow {
	order: 1;
	margin-bottom: 8px;
}

.hero-panel.is-visible .hero-media {
	order: 2;
	margin-bottom: 12px;
}

.hero-panel.is-visible .hero-copy {
	order: 3;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-panel.is-visible .hero-copy h1,
.hero-panel.is-visible .hero-copy .lede {
	text-align: center;
}

.hero-panel.is-visible .hero-cta {
	justify-content: center;
}

.hero-panel.is-visible .meta-grid li {
	text-align: center;
}

.hero-copy h1 {
	font-size: clamp(2.5rem, 6vw, 3.9rem);
	line-height: 1.05;
	margin: 12px 0 16px;
	letter-spacing: -0.04em;
	text-align: right;
}

.hero-copy .job-title {
	display: block;
	color: var(--profile-muted);
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 500;
	margin: 20px 0px;
	line-height: 1.4;
}

.eyebrow {
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	color: #000000;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(8px);
	font-weight: 600;
}

html.dark .eyebrow {
	background: rgb(255 255 255 / 91%);
	border-color: #9c27b0;
}

.lede {
	font-size: 1.05rem;
	color: var(--profile-muted);
	max-width: 600px;
	margin-top: 0px;
	margin-bottom: 10px !important;
	margin: auto;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 28px 0 24px;
}

.primary-cta {
	position: relative;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.65);
	color: var(--profile-fg);
	cursor: pointer;
	transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
	overflow: hidden;
	isolation: isolate;
	--pointer-x: 50%;
	--pointer-y: 50%;
}

.primary-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.95);
	opacity: 0;
	clip-path: circle(0% at var(--pointer-x) var(--pointer-y));
	transition: clip-path 360ms ease, opacity 220ms ease;
	z-index: -1;
}

.primary-cta:hover,
.primary-cta:focus-visible {
	transform: translateY(-2px);
	border-color: transparent;
	color: var(--profile-fg);
	outline: none;
}

.primary-cta:hover::after,
.primary-cta:focus-visible::after {
	opacity: 1;
	clip-path: circle(160% at var(--pointer-x) var(--pointer-y));
}

html.dark .primary-cta {
	background: rgb(255 255 255 / 91%);
	color: #000000;
}

html.dark .primary-cta::after {
	background: rgba(255, 255, 255, 0.92);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html.dark .primary-cta:hover,
html.dark .primary-cta:focus-visible {
	color: #0a0a0a;
}

.link-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--profile-fg);
	text-decoration: none;
	background: rgba(0, 0, 0, 0.04);
	transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.link-cta__icon {
	transition: transform 220ms ease;
}

.link-cta:hover,
.link-cta:focus-visible {
	color: var(--profile-accent);
	border-color: rgba(154, 71, 255, 0.25);
	transform: translateY(-2px);
}

.link-cta:hover .link-cta__icon,
.link-cta:focus-visible .link-cta__icon {
	transform: translate(-4px, 4px);
}

html.dark .link-cta {
	color: #000000;
	background: rgb(255 255 255 / 91%);
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #000000;
}

.meta-grid li {
	padding: 14px 18px;
	border-radius: 18px;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	text-align: right;
}

html.dark .meta-grid li {
	background: rgba(255, 255, 255, 0.85);
}

.meta-grid .label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #000000;
	display: block;
	margin-bottom: 6px;
}

.hero-media {
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	width: 120px;
	height: 120px;
	background: var(--profile-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
		0 25px 50px rgba(0, 0, 0, 0.25);
	margin-inline: auto;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.05);
	transition: transform 400ms ease;
}

.media-planet {
	position: absolute;
	inset: auto auto 24px 24px;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
	border-radius: 50%;
	filter: blur(12px);
	opacity: 0.4;
	pointer-events: none;
}
.about-panel {
	text-align: center;
}
.about-panel .about-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(16px, 3vw, 32px);
	margin-top: 24px;
	color: var(--profile-muted);
	text-align: center;
}
.section-heading {
	text-align: center;
}
.section-heading h2 {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	margin: 10px 0 17px;
	line-height: 1.2;
}
.skills-panel {
	text-align: center;
}
.skills-panel .skill-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
	justify-content: center;
}

.chip {
	position: relative;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--profile-stroke);
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(12px);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--profile-fg);
	cursor: pointer;
	transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
	overflow: hidden;
	isolation: isolate;
	--pointer-x: 50%;
	--pointer-y: 50%;
}

.chip::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.95);
	opacity: 0;
	clip-path: circle(0% at var(--pointer-x) var(--pointer-y));
	transition: clip-path 360ms ease, opacity 220ms ease;
	z-index: -1;
}

html.dark .chip {
	background: rgba(15, 15, 20, 0.55);
	color: var(--profile-fg);
}

.chip:hover,
.chip:focus-visible {
	transform: translateY(-2px);
	border-color: transparent;
	color: var(--profile-fg);
	outline: none;
}

.chip:hover::after,
.chip:focus-visible::after {
	opacity: 1;
	clip-path: circle(160% at var(--pointer-x) var(--pointer-y));
}

html.dark .chip::after {
	background: rgba(255, 255, 255, 0.92);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html.dark .chip:hover,
html.dark .chip:focus-visible {
	color: #0a0a0a;
}

.experience-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 36px;
}

.experience-actions {
	margin-top: 24px;
	display: flex;
	justify-content: center;
}

.experience-actions .show-all {
	border-radius: 999px;
	padding: 12px 24px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: transform 180ms ease, background 180ms ease;
}

.experience-actions .show-all:hover {
	transform: translateY(-2px);
	background: rgba(0, 0, 0, 0.95);
}

.experience-card {
	background: rgba(255, 255, 255, 0.45);
	border-radius: 24px;
	padding: 26px;
	border: 1px solid var(--profile-stroke);
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
	transition: transform 220ms ease, box-shadow 220ms ease;
	will-change: transform;
	box-shadow: 0 12px 40px rgba(11, 12, 15, 0.1);
	text-align: ce;
}

html.dark .experience-card {
	background: rgba(15, 15, 20, 0.7);
}

.experience-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.experience-card .card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--profile-muted);
}

.badge {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--profile-accent-soft);
	color: var(--profile-accent);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.badge--alt {
	background: rgba(76, 201, 240, 0.18);
	color: #4cc9f0;
}

.experience-card h3 {
	font-size: 1.25rem;
	margin: 4px 0;
}

.experience-card p {
	color: var(--profile-muted);
	margin: 0;
}

.experience-card ul {
	padding-inline-start: 18px;
	padding-inline-end: 0;
	margin: 6px 0 0;
	color: var(--profile-fg);
}

.contact-panel .contact-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.contact-card {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid transparent;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 180ms ease, background 180ms ease,
		border-color 180ms ease;
	position: relative;
}

.contact-card div {
	display: none;
}

.icon-ring {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.icon-ring img,
.icon-ring svg {
	width: 20px;
	height: 20px;
}

.contact-card:hover {
	border-color: rgba(154, 71, 255, 0.5);
	background: #111;
	transform: translateY(-2px);
}

html.dark .contact-card {
	background: #030303;
}

html.dark .contact-card:hover {
	background: #111;
}

.contact-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 3px solid transparent;
	pointer-events: none;
}

.contact-panel.pulse-focus::after {
	animation: contact-border-pulse 1.2s ease-out 3;
}

@keyframes contact-border-pulse {
	0% {
		border-color: rgba(154, 71, 255, 0);
	}
	30% {
		border-color: rgba(154, 71, 255, 0.85);
	}
	70% {
		border-color: rgba(154, 71, 255, 0);
	}
	100% {
		border-color: rgba(154, 71, 255, 0);
	}
}

.profile-footer {
	max-width: 1200px;
	margin: -40px auto 60px;
	text-align: center;
	color: var(--profile-muted);
	font-size: 0.9rem;
	padding: 0 24px;
}

[data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 720px) {
	.profile-header {
		flex-direction: column;
		gap: 14px;
		align-items: flex-start;
	}

	.hero-panel {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.hero-media {
		height: clamp(120px, 35vw, 180px);
		width: clamp(120px, 35vw, 180px);
	}

	.meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.meta-grid li:last-child:nth-child(odd) {
		grid-column: span 2;
		max-width: 60%;
		margin: 0 auto;
		text-align: center;
	}
}
.scroll-cta.social-cta-scroll .cta-btn.button__txt {
	min-width: 31ch;
	height: 3.2em;
}
.scroll-cta.social-cta-scroll .cta-btn.button__txt > div {
	top: 15px;
}
.scroll-cta.social-cta-scroll .round-btn.left,
.scroll-cta.social-cta-scroll:hover .round-btn.right {
	width: 51px;
	height: 51px;
}
