/*
Theme Name: Jakia Portfolio
Description: Lightweight one-page portfolio theme for jakia.me. Plain PHP/CSS/JS, no page builder, no third-party plugins required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jakia-portfolio
*/

:root {
	--bg: #000;
	--panel: #2e2d2d;
	--text: #cecbce;
	--white: #fff;
	--muted: #b4b4b4;
	--green: #20c997;
	--green-hi: #0ae6a5;
	--font: "PT Serif", Georgia, "Times New Roman", serif;
	--wrap: 1140px;
	--header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.7 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hi); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--white); font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #000; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; background: var(--bg); }
.section-title { text-align: center; font-size: 38px; margin-bottom: 14px; }
.divider { display: block; width: 100px; height: 4px; background: var(--green); margin: 0 auto 36px; border: 0; border-radius: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-logo img { width: 80px; height: auto; }
.site-logo .site-name { color: var(--white); font-weight: 700; font-size: 22px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav a { color: var(--white); font-weight: 700; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); border-color: var(--green); }

/* hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; text-align: center; background: #000 center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.hero .wrap { position: relative; }
.hero .kicker { font-size: 26px; font-weight: 700; color: var(--white); margin: 0 0 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 26px; }
.rot { color: var(--green); display: inline-block; min-width: 1ch; }
.rot.is-fading { opacity: 0; }
.rot { transition: opacity .35s ease; }
.hero .lead { font-size: clamp(20px, 3vw, 28px); color: var(--white); max-width: 640px; margin: 0 auto 34px; line-height: 1.45; }
.btn { display: inline-block; border: 1px solid var(--green); color: var(--white); padding: 14px 44px; border-radius: 40px; font-weight: 700; background: transparent; cursor: pointer; font-family: var(--font); font-size: 17px; transition: background .2s, color .2s; }
.btn:hover { background: var(--green); color: #000; }

/* about */
.about { background: var(--panel); padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; max-height: 600px; border-radius: 6px; overflow: hidden; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .92; }
.about-body { text-align: center; }
.about-body h2.section-title { font-size: 26px; margin-bottom: 10px; }
.about-body h3 { font-size: clamp(28px, 4vw, 40px); }
.about-body p { text-align: left; }
.info-list { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; }
.info-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.9); }
.stats { background: #000; padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 46px; color: var(--green); font-weight: 700; line-height: 1.1; }
.stat span { color: #fff; }

/* what I do */
.what .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.what h2 { font-size: 34px; margin-bottom: 14px; }
.what .divider { margin-left: 0; }
.do-list { list-style: none; margin: 0; padding: 0; }
.do-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; color: var(--white); font-size: 19px; line-height: 1.4; }
.do-list svg { flex: 0 0 26px; width: 26px; height: 26px; fill: var(--green); margin-top: 2px; }
.why p { color: var(--muted); }
.why strong { color: var(--white); }

/* skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 70px; }
.skill { margin-bottom: 26px; }
.skill h3 { font-size: 19px; margin-bottom: 8px; }
.bar { height: 18px; background: #fff; border-radius: 50px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 50px; transition: width 1.2s ease; }
.no-js .bar i, .bar.is-in i { width: var(--pct); }

/* portfolio */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 34px; }
.filters button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--white); padding: 8px 22px; border-radius: 30px; cursor: pointer; font: 700 16px var(--font); }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--green); border-color: var(--green); color: #000; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.work li[hidden] { display: none; }
.work a { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; border-radius: 4px; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work a:hover img, .work a:focus-visible img { transform: scale(1.06); }
.work .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 15px; opacity: 0; transition: opacity .25s; }
.work a:hover .cap, .work a:focus-visible .cap { opacity: 1; }

/* testimonials */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.slides { position: relative; }
.slide { display: none; }
.slide.is-on { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.quote blockquote { margin: 0 0 26px; color: var(--white); font-size: 21px; font-style: italic; line-height: 1.6; }
.quote .who { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; color: var(--white); }
.quote .who span { color: var(--muted); font-size: 15px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: #fff; opacity: .45; cursor: pointer; }
.dots button[aria-current="true"] { opacity: 1; background: var(--green); }

/* contact / footer */
.site-footer { background: var(--panel); padding: 80px 0 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.site-footer h2 { font-size: 24px; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer address { font-style: normal; margin-bottom: 22px; }
.contact-list { list-style: none; margin: 0 0 30px; padding: 0; }
.contact-list li { margin-bottom: 8px; }
.contact-list b { color: var(--green); font-weight: 700; margin-right: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-block; border: 1px solid var(--green); border-radius: 30px; padding: 6px 16px; font-size: 15px; }
.touch h2 { font-size: 34px; }
.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea { width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); padding: 12px 4px; font: 400 18px var(--font); border-radius: 0; }
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-bottom-color: var(--green); }
.wpcf7 input[type=submit] { background: var(--green); color: #000; border: 0; border-radius: 4px; padding: 15px 10px; width: 50%; min-width: 150px; font: 700 18px var(--font); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--green-hi); }
.wpcf7-not-valid-tip, .wpcf7-response-output { color: #ffb3b3; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { color: var(--green); border-color: var(--green); }
.copy { text-align: center; margin: 54px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: var(--muted); font-size: 14px; }

/* generic pages */
.page-wrap { max-width: 800px; margin: 0 auto; padding: 70px 20px; }
.page-wrap h1 { font-size: 38px; }

/* responsive */
@media (max-width: 900px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #000; border-top: 1px solid rgba(255,255,255,.1); padding: 10px 20px 20px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 4px; }
	.main-nav a { display: block; padding: 12px 0; }
	.about-grid, .what .wrap, .contact-grid, .skills-grid { grid-template-columns: 1fr; }
	.about { padding: 56px 0; }
	.about-grid { gap: 34px; }
	.about-photo { aspect-ratio: 4 / 3; max-height: 420px; }
	.stats .wrap { grid-template-columns: repeat(2, 1fr); }
	.work { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 64px 0; }
}
@media (max-width: 560px) {
	.work { grid-template-columns: 1fr; }
	.wpcf7 input[type=submit] { width: 100%; }
	.quote blockquote { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
