/*
Theme Name: iamarif
Theme URI: https://iamarif.com
Author: Arif Evren
Author URI: https://iamarif.com
Description: Portfolio / freelance landing page block theme for Arif Evren (iamarif.com) — Fiverr Vetted Pro & Top Rated WordPress designer/developer.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: iamarif
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a {
	text-decoration: none;
}

::selection {
	background: #f4432c;
	color: #fff;
}

@keyframes bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header / Nav ---------- */
header.wp-block-template-part:has(.site-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 48px;
	gap: 24px;
	flex-wrap: wrap;
	background: #0d0d0d;
}

.site-logo {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	color: #f5f4f1;
}

.site-logo .accent-mark {
	color: #f4432c;
	font-size: 24px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
	font-size: 15px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links li {
	list-style: none;
}

.nav-links a {
	color: rgba(245, 244, 241, 0.75);
}

.nav-links a:hover {
	color: #f4432c;
}

/* ---------- Mobile menu (hamburger + drawer) ---------- */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.mobile-menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #f5f4f1;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(13, 13, 13, 0.6);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 90;
}

.mobile-nav-backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mobile-nav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 82vw);
	background: #0d0d0d;
	z-index: 95;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	padding: 28px 32px;
	box-sizing: border-box;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.mobile-nav-drawer.is-open {
	transform: translateX(0);
}

.mobile-nav-close {
	align-self: flex-end;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(245, 244, 241, 0.1);
	color: #f5f4f1;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.mobile-nav-links {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-size: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav-links a {
	color: #f5f4f1;
}

.mobile-nav-links a:hover {
	color: #f4432c;
}

.mobile-nav-cta {
	width: 100%;
	justify-content: center;
}

@media (max-width: 900px) {
	.nav-links,
	.site-header .btn-pill--nav {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
	}
}

/* ---------- Pill buttons ---------- */
.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border-radius: 999px;
	padding: 16px 34px;
	font-size: 17px;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-pill--nav {
	padding: 8px 22px 8px 8px;
	font-size: 15px;
	background: #f5f4f1;
	color: #0d0d0d;
}

.btn-pill--nav .pill-arrow {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f4432c;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 16px;
}

.btn-pill--nav:hover {
	background: #f4432c;
	color: #fff;
}

.btn-pill--accent {
	background: #f4432c;
	color: #fff;
}

.btn-pill--accent:hover {
	background: #f5f4f1;
	color: #0d0d0d;
}

.btn-pill--outline {
	border: 1px solid rgba(245, 244, 241, 0.35);
	color: #f5f4f1;
}

.btn-pill--outline:hover {
	border-color: #f5f4f1;
	color: #f5f4f1;
}

.btn-pill--whatsapp {
	background: #25d366;
	color: #05230f;
}

.btn-pill--whatsapp:hover {
	background: #f5f4f1;
	color: #0d0d0d;
}

.btn-pill--whatsapp svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero-section {
	position: relative;
	background: #0d0d0d;
	color: #f5f4f1;
	min-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hero-spotlight {
	position: absolute;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -50%);
	width: 900px;
	height: 900px;
	max-width: 140vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 62%);
	pointer-events: none;
}

.hero-body {
	position: relative;
	z-index: 1;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	padding: 0 48px;
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	gap: 24px;
}

.hero-name {
	align-self: center;
	padding-bottom: 100px;
	animation: fadeUp 0.8s ease 0.1s both;
}

.hero-name .hero-greeting {
	font-size: 34px;
	font-weight: 400;
	color: rgba(245, 244, 241, 0.9);
	margin-bottom: 4px;
}

.hero-name .hero-firstname {
	font-size: clamp(90px, 13vw, 190px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.9;
	color: #f4432c;
	margin: 0;
}

.hero-portrait-wrap {
	position: relative;
	width: 640px;
	max-width: 46vw;
	animation: fadeUp 1s ease 0.25s both;
}

/*
 * The image file itself (profile-faded.webp) already has real alpha
 * transparency baked into its edges — pre-composited in an offline pass so
 * the fade is a true per-pixel cutout, not a CSS mask/blend-mode
 * approximation. That approach kept leaving a faint halo/oval outline
 * because the photo's own studio backdrop was never pure #0d0d0d, so any
 * live blend-mode trick still showed a seam at some zoom levels.
 */
.hero-portrait-wrap img,
.hero-portrait {
	display: block;
	width: 100%;
	height: auto;
	filter: contrast(1.02) brightness(0.96);
}

.hero-tagline {
	align-self: center;
	justify-self: end;
	text-align: right;
	max-width: 300px;
	padding-bottom: 100px;
	font-size: 20px;
	line-height: 1.5;
	color: rgba(245, 244, 241, 0.85);
	animation: fadeUp 0.8s ease 0.4s both;
}

.hero-bottom-row {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0 48px 36px;
	font-size: 16px;
	color: rgba(245, 244, 241, 0.7);
	gap: 16px;
	flex-wrap: wrap;
	animation: fadeUp 0.8s ease 0.55s both;
}

@media (prefers-reduced-motion: reduce) {
	.hero-name,
	.hero-portrait-wrap,
	.hero-tagline,
	.hero-bottom-row,
	.hero-scroll .bob {
		animation: none;
	}
}

.hero-experience {
	max-width: 260px;
	line-height: 1.5;
}

.hero-scroll {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-scroll .bob {
	animation: bob 2s ease-in-out infinite;
	display: inline-block;
}

/* ---------- Stats strip ---------- */
.stats-strip {
	background: #faf9f6;
	border-bottom: 1px solid #e8e5df;
}

.stats-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 48px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.stat-value {
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0;
}

.stat-label {
	font-size: 15px;
	color: #6f6a62;
	margin: 0;
}

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f4432c;
	margin-bottom: 16px;
}

.section-heading {
	font-size: clamp(36px, 4.5vw, 56px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0 0 64px;
	max-width: 640px;
}

/* ---------- Services ---------- */
.services-section {
	background: #faf9f6;
}

.services-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 110px 48px 90px;
}

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

.svc-card {
	background: #ffffff;
	border: 1px solid #e8e5df;
	border-radius: 18px;
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-color 0.2s ease;
}

.svc-card:hover {
	border-color: #141414;
}

.svc-num {
	font-size: 15px;
	font-weight: 600;
	color: #b3ada3;
	margin: 0;
}

.svc-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.svc-desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #6f6a62;
}

/* ---------- Selected Work ---------- */
.work-section {
	background: #f2f0eb;
}

.work-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 110px 48px;
}

.work-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 64px;
	flex-wrap: wrap;
}

.work-header .section-heading {
	margin-bottom: 0;
}

.work-more-link {
	font-size: 16px;
	font-weight: 600;
	border-bottom: 2px solid #141414;
	padding-bottom: 3px;
	white-space: nowrap;
}

/* ---------- Testimonial ---------- */
.testimonial-section {
	background: #faf9f6;
}

.testimonial-inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 110px 48px;
}

/* ---------- About ---------- */
.about-section {
	background: #f2f0eb;
}

.about-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 110px 48px;
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 72px;
	align-items: center;
}

.about-portrait {
	background: #0d0d0d;
	border-radius: 18px;
	overflow: hidden;
}

.about-portrait img {
	display: block;
	width: 100%;
	height: auto;
	filter: grayscale(1);
}

.about-heading {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 24px;
}

.about-text {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.65;
	color: #4a463f;
}

.about-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.badge-pill {
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #d5d1c8;
	border-radius: 999px;
	padding: 8px 18px;
	background: #ffffff;
}

/* ---------- CTA + Footer ---------- */
.cta-footer-section {
	background: #0d0d0d;
	color: #f5f4f1;
}

.cta-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 130px 48px;
	text-align: center;
}

.cta-heading {
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0 0 24px;
}

.cta-sub {
	margin: 0 auto 44px;
	max-width: 440px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(245, 244, 241, 0.7);
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.site-footer-bar {
	background: #0d0d0d;
	border-top: 1px solid rgba(245, 244, 241, 0.12);
	padding: 28px 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: rgba(245, 244, 241, 0.55);
	flex-wrap: wrap;
	gap: 16px;
}

.footer-socials {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-body {
		grid-template-columns: 1fr;
		text-align: center;
		padding-top: 48px;
	}

	.hero-tagline {
		justify-self: center;
		text-align: center;
		padding-bottom: 24px;
		margin: 0 auto;
	}

	.hero-portrait-wrap {
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}

	.hero-bottom-row {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
	}

	.hero-experience {
		max-width: none;
		margin: 0 auto;
	}

	.stats-grid,
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.stats-grid,
	.services-grid {
		grid-template-columns: 1fr;
	}

	.site-header {
		padding: 20px 24px;
	}

	.nav-links {
		gap: 18px;
		font-size: 14px;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cta-buttons .btn-pill {
		width: 100%;
		max-width: 320px;
		justify-content: center;
	}
}
