/*
Theme Name: Tanvirul 2026
Theme URI: https://www.tanvirul872.com/
Author: Md Tanvirul Karim
Author URI: https://www.tanvirul872.com/
Description: Personal portfolio theme for AI automation and full-stack (Laravel, WordPress) services. Uses the existing "works" post type.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tanvirul-2026
*/

/* Markup convention: h1-h6, p, span, ul, li carry no classes.
   Each is wrapped in a div with a class and styled as a descendant. */

:root {
	--tk-bg: #0D0F12;
	--tk-bg-alt: #111418;
	--tk-surface: #15181D;
	--tk-surface-2: #1A1E24;
	--tk-line: #222731;
	--tk-line-2: #2A303A;
	--tk-text: #ECEEF1;
	--tk-text-2: #B4BCC6;
	--tk-muted: #A9B1BC;
	--tk-faint: #6F7883;
	--tk-accent: #C8F25A;
	--tk-on-accent: #0D0F12;
	--tk-radius: 18px;
	--tk-max: 1240px;
	--tk-font-display: 'Space Grotesk', system-ui, sans-serif;
	--tk-font-body: 'IBM Plex Sans', system-ui, sans-serif;
	--tk-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--tk-bg);
	color: var(--tk-text);
	font-family: var(--tk-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tk-text); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--tk-accent); outline-offset: 3px; }

.tk-skip { position: absolute; left: -9999px; top: 8px; background: var(--tk-accent); color: var(--tk-on-accent); padding: 10px 16px; border-radius: 8px; z-index: 100000; }
.tk-skip:focus { left: 16px; }

.tk-wrap { max-width: var(--tk-max); margin: 0 auto; padding: 0 24px; }
.tk-section { padding: 96px 0; border-top: 1px solid var(--tk-line); }
.tk-section--alt { background: var(--tk-bg-alt); }

/* Shared text pieces */
.tk-eyebrow span { font-family: var(--tk-font-mono); font-size: 13px; letter-spacing: .08em; color: var(--tk-accent); text-transform: uppercase; }
.tk-h1 h1 { margin: 0; font-family: var(--tk-font-display); font-weight: 600; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -.035em; }
.tk-h2 h2 { margin: 0; font-family: var(--tk-font-display); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.tk-h3 h3 { margin: 0; font-family: var(--tk-font-display); font-weight: 600; font-size: 23px; letter-spacing: -.02em; line-height: 1.25; }
.tk-lead p { margin: 0; font-size: 20px; color: var(--tk-text-2); max-width: 600px; }
.tk-body p { margin: 0 0 14px; color: var(--tk-text-2); }
.tk-body p:last-child { margin-bottom: 0; }
.tk-small p { margin: 0; font-size: 14px; color: var(--tk-muted); }
.tk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.tk-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* Buttons */
.tk-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.tk-btn--primary { background: var(--tk-accent); color: var(--tk-on-accent); }
.tk-btn--primary:hover { color: var(--tk-on-accent); transform: translateY(-1px); }
.tk-btn--ghost { border-color: #343A45; color: var(--tk-text); background: transparent; }
.tk-btn--ghost:hover { border-color: var(--tk-muted); }
.tk-btn svg { width: 18px; height: 18px; }
.tk-chip span { display: inline-block; font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-muted); border: 1px solid var(--tk-line-2); padding: 3px 10px; border-radius: 999px; }

/* Header */
.tk-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 15, 18, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tk-line); }
.admin-bar .tk-header { top: 32px; }
.tk-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.tk-logo { font-family: var(--tk-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.tk-logo b { color: var(--tk-accent); }
.tk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.tk-nav li a { color: var(--tk-muted); font-size: 15px; }
.tk-nav li a:hover { color: var(--tk-text); }
.tk-menu-btn { display: none; background: none; border: 1px solid var(--tk-line-2); color: var(--tk-text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.tk-header__cta { display: inline-flex; }

/* Hero */
.tk-hero { padding: 88px 0 72px; }
.tk-hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.tk-hero__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tk-hero__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tk-status { display: flex; align-items: center; gap: 10px; }
.tk-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-accent); display: inline-block; }
.tk-status span { font-family: var(--tk-font-mono); font-size: 13px; letter-spacing: .08em; color: var(--tk-muted); }
.tk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 28px; border-top: 1px solid var(--tk-line); max-width: 580px; }
.tk-stat__num span { font-family: var(--tk-font-display); font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.tk-photo { border-radius: 24px; overflow: hidden; background: var(--tk-surface); border: 1px solid var(--tk-line); aspect-ratio: 4 / 4.2; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; }
.tk-flow { background: var(--tk-surface); border: 1px solid var(--tk-line-2); border-radius: var(--tk-radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tk-flow__top { display: flex; justify-content: space-between; }
.tk-flow__top span { font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-muted); }
.tk-flow__top b { font-family: var(--tk-font-mono); font-size: 12px; font-weight: 400; color: var(--tk-accent); }
.tk-flow__steps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-flow__steps li { background: var(--tk-surface-2); border: 1px solid var(--tk-line-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.tk-flow__steps li:nth-child(2) { border-color: var(--tk-accent); }

/* Social boxes */
.tk-social { padding: 0 0 88px; }
.tk-social__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tk-social__card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--tk-radius); background: var(--tk-surface); border: 1px solid var(--tk-line); transition: border-color .15s ease, transform .15s ease; }
.tk-social__card:hover { border-color: var(--tk-muted); transform: translateY(-2px); color: var(--tk-text); }
.tk-social__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tk-surface-2); border: 1px solid var(--tk-line-2); }
.tk-social__icon svg { width: 22px; height: 22px; }
.tk-social__card--wa .tk-social__icon { background: #25D366; border-color: #25D366; }
.tk-social__name span { font-family: var(--tk-font-display); font-weight: 600; font-size: 19px; }
.tk-social__go span { font-family: var(--tk-font-mono); font-size: 13px; color: var(--tk-accent); }

/* Cards (services, testimonials) */
.tk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tk-card { background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: var(--tk-radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tk-card__top { display: flex; justify-content: space-between; align-items: center; }
.tk-card__num span { font-family: var(--tk-font-mono); font-size: 13px; color: var(--tk-faint); }
.tk-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tk-line); }

/* Works */
.tk-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tk-work { display: flex; flex-direction: column; gap: 14px; color: var(--tk-text); }
.tk-work:hover { color: var(--tk-text); }
.tk-work__img { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--tk-surface-2); border: 1px solid var(--tk-line); }
.tk-work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tk-work:hover .tk-work__img img { transform: scale(1.03); }
.tk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tk-filter a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--tk-line-2); border-radius: 999px; font-size: 14px; color: var(--tk-muted); }
.tk-filter a.is-active, .tk-filter a:hover { border-color: var(--tk-accent); color: var(--tk-text); }

/* Process */
.tk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--tk-line-2); }
.tk-step { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.tk-step__num span { font-family: var(--tk-font-display); font-size: 48px; font-weight: 600; color: var(--tk-accent); line-height: 1; letter-spacing: -.03em; }

/* About */
.tk-about { display: flex; flex-wrap: wrap; gap: 64px; }
.tk-about__col { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tk-stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-stack li { font-family: var(--tk-font-mono); font-size: 13px; background: var(--tk-surface-2); border: 1px solid var(--tk-line-2); padding: 7px 12px; border-radius: 8px; }
.tk-timeline__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--tk-line-2); }
.tk-timeline__when span { font-family: var(--tk-font-mono); font-size: 13px; color: var(--tk-muted); }

/* Testimonials */
.tk-quote blockquote { margin: 0; font-family: var(--tk-font-display); font-size: 21px; line-height: 1.4; letter-spacing: -.01em; }
.tk-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.tk-quote__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tk-quote__name span { font-weight: 500; }

/* Contact */
.tk-contact { display: flex; flex-wrap: wrap; gap: 56px; }
.tk-contact__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tk-contact__lines { display: flex; flex-direction: column; gap: 16px; }
.tk-contact__line { display: flex; flex-direction: column; gap: 2px; }
.tk-contact__label span { font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-muted); letter-spacing: .06em; }
.tk-contact__value span { font-size: 20px; }
.tk-form { flex: 1 1 420px; min-width: 0; background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-field label { font-size: 14px; color: var(--tk-text-2); }
.tk-field input, .tk-field textarea, .tk-field select { background: var(--tk-bg); border: 1px solid var(--tk-line-2); border-radius: 12px; padding: 14px 16px; color: var(--tk-text); font: inherit; min-height: 48px; width: 100%; }
.tk-field textarea { resize: vertical; min-height: 120px; }
.tk-field input:focus, .tk-field textarea:focus, .tk-field select:focus { border-color: var(--tk-accent); outline: none; }
.tk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tk-text-2); }
.tk-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tk-accent); }
.tk-hp { position: absolute; left: -9999px; }
.tk-notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--tk-accent); }
.tk-notice--error { border-color: #FF8A7A; }

/* Footer */
.tk-footer { border-top: 1px solid var(--tk-line); padding: 32px 0; }
.tk-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tk-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.tk-footer__links a { color: var(--tk-muted); font-size: 14px; }

/* WhatsApp float */
.tk-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 9999; }
.tk-wa-float a { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.tk-wa-float a:hover { transform: scale(1.08); }
.tk-wa-float svg { width: 30px; height: 30px; }

/* Single work / pages */
.tk-page { padding: 72px 0 96px; }
.tk-page__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 860px; }
.tk-page__cover { border-radius: 20px; overflow: hidden; border: 1px solid var(--tk-line); margin-bottom: 48px; }
.tk-content { max-width: 760px; }
.tk-content p, .tk-content li { color: var(--tk-text-2); }
.tk-content h2, .tk-content h3 { font-family: var(--tk-font-display); letter-spacing: -.02em; margin: 40px 0 14px; }
.tk-content a { color: var(--tk-accent); text-decoration: underline; }
.tk-content img { border-radius: 14px; margin: 24px 0; }
.tk-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--tk-line); }
.tk-404 { min-height: 60vh; display: flex; align-items: center; }
.tk-404 .tk-h1 h1 { font-size: clamp(80px, 14vw, 160px); }

/* Responsive */
@media (max-width: 1024px) {
	.tk-grid-3, .tk-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tk-social__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.tk-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
	.tk-header__cta { display: none; }
	.tk-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tk-bg); border-bottom: 1px solid var(--tk-line); padding: 16px 24px 24px; }
	.tk-nav.is-open { display: block; }
	.tk-nav ul { flex-direction: column; gap: 4px; }
	.tk-nav li a { display: block; padding: 12px 0; font-size: 17px; }
	.admin-bar .tk-header { top: 46px; }
}
@media (max-width: 640px) {
	.tk-section { padding: 72px 0; }
	.tk-wrap { padding: 0 16px; }
	.tk-grid-3, .tk-works, .tk-steps { grid-template-columns: minmax(0, 1fr); }
	.tk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.tk-stat__num span { font-size: 28px; }
	.tk-form { padding: 22px; }
	.tk-wa-float { right: 16px; bottom: 16px; }
	.tk-wa-float a { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
