/* =========================================================
   CodeCraft theme styles
   Dark developer-portfolio design, matching /design mockup.
   ========================================================= */

:root {
	--bg: #0a0c14;
	--bg-alt: #0d1120;
	--surface: #131728;
	--surface-2: #171c30;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);
	--text: #e8eaf2;
	--text-muted: #94a0b8;
	--text-dim: #626c82;
	--primary: #7c5cff;
	--secondary: #3b82f6;
	--gradient: linear-gradient(135deg, #7c5cff 0%, #3b82f6 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	--shadow-glow: 0 12px 30px rgba(124, 92, 255, 0.35);
	--container: 1180px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; margin: 0; color: var(--text); }
p { margin: 0; }
::selection { background: var(--primary); color: #fff; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
	position: fixed; top: 10px; left: 10px; width: auto; height: auto;
	padding: 12px 20px; background: var(--primary); color: #fff; z-index: 10000;
	border-radius: var(--radius-sm); clip: auto;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 100px 0; }
section[id], .hero[id] { scroll-margin-top: 90px; }

/* ---------- Shared elements ---------- */
.badge {
	display: inline-flex; align-items: center;
	padding: 7px 16px;
	background: rgba(124, 92, 255, 0.12);
	border: 1px solid rgba(124, 92, 255, 0.28);
	color: #a996ff;
	font-size: 12px; font-weight: 600; letter-spacing: 1px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.section-heading { margin-bottom: 56px; }
.section-heading.centered { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 0 0 14px; }
.section-description { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; max-width: 620px; }

.text-gradient {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Self-hosted inline SVG icons (inc/icons.php) - sized like an icon font via
   1em so existing font-size-based sizing on parent elements keeps working. */
.codecraft-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600; font-size: 15px;
	border: 1px solid transparent;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
	white-space: nowrap;
}
.btn .codecraft-icon { font-size: 13px; transition: transform 0.3s var(--ease); }
.btn:hover .codecraft-icon { transform: translate(2px, -2px); }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: #a996ff; transform: translateY(-3px); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.card-link {
	display: inline-flex; align-items: center; gap: 6px;
	color: #a996ff; font-weight: 600; font-size: 14px;
	transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.card-link:hover { gap: 11px; color: var(--secondary); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 999;
	background: rgba(10, 12, 20, 0.7);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 12, 20, 0.92); border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.site-logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.site-logo img { max-height: 44px; width: auto; }
.logo-mark { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text { color: var(--text); }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
	position: relative; color: var(--text-muted); font-size: 14.5px; font-weight: 500;
	padding: 6px 0; transition: color 0.3s var(--ease);
}
.nav-menu a::after {
	content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
	background: var(--gradient); transition: width 0.3s var(--ease);
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.is-active::after { width: 100%; }

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

.menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: transparent; border: 1px solid var(--border-strong);
	border-radius: 10px; padding: 0; align-items: center;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
	position: fixed; inset: 0; background: rgba(5, 6, 12, 0.6); z-index: 900;
	opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.menu-overlay.is-active { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 168px 0 110px; }
.hero-glow {
	position: absolute; width: 620px; height: 620px; top: -160px; right: -160px;
	background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
	filter: blur(50px); animation: float-glow 9s ease-in-out infinite; pointer-events: none;
}
@keyframes float-glow {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-30px, 30px) scale(1.08); }
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.18; margin: 20px 0; }
.hero-description { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; max-width: 480px; margin: 20px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-tech-label { font-size: 12px; letter-spacing: 1px; color: var(--text-dim); font-weight: 600; margin: 0 0 16px; }
.tech-icon-row { display: flex; flex-wrap: wrap; gap: 22px; }
.tech-icon-row li { font-size: 30px; color: var(--text-muted); transition: transform 0.3s var(--ease); line-height: 1; }
.tech-icon-row li:hover { transform: translateY(-5px) scale(1.12); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-photo-wrap {
	position: relative; flex: none; width: 100%; max-width: 420px; aspect-ratio: 1 / 1.08;
	border-radius: 40% 60% 62% 38% / 46% 42% 58% 54%;
	overflow: hidden; background: var(--gradient);
	box-shadow: 0 30px 60px rgba(124, 92, 255, 0.25);
	animation: blob-morph 12s ease-in-out infinite;
}
@keyframes blob-morph {
	0%, 100% { border-radius: 40% 60% 62% 38% / 46% 42% 58% 54%; }
	50% { border-radius: 58% 42% 40% 60% / 40% 58% 42% 60%; }
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); }
.developer-doodle { width: 58%; max-width: 230px; height: auto; }

.hero-code-card {
	position: absolute; right: -10px; bottom: -24px; width: 250px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
	padding: 16px; box-shadow: var(--shadow); animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-code-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.hero-code-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.hero-code-dots em { font-style: normal; font-size: 11px; color: var(--text-muted); margin-left: auto; margin-right: 4px; }
.hero-code-dots .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin: 0; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-code-card pre { margin: 0; overflow-x: auto; }
.hero-code-card code { font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 11px; line-height: 1.7; color: #b6c2ff; white-space: pre-wrap; word-break: break-word; }

/* ---------- About ---------- */
.about-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy .section-title { margin: 16px 0; }
.about-copy .btn { margin-top: 26px; }

.about-stats {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat-item { background: var(--surface); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; transition: background 0.3s var(--ease); }
.stat-item:hover { background: var(--surface-2); }
.stat-icon {
	width: 42px; height: 42px; border-radius: 12px; background: var(--gradient);
	display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
}
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; }
.skills-column { display: flex; flex-direction: column; gap: 26px; }
.skill-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.skill-name { display: inline-flex; align-items: center; gap: 10px; }
.skill-name .codecraft-icon { font-size: 18px; }
.skill-percent { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.skill-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--gradient); transition: width 1.3s var(--ease); }

/* ---------- AI Tools ---------- */
.ai-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-description.centered { margin-left: auto; margin-right: auto; }

.ai-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.ai-tool-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px 24px; text-align: center;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ai-tool-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(124, 92, 255, 0.4); }
.ai-tool-icon {
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
	width: 56px; height: 56px; border-radius: 16px; background: var(--gradient); color: #fff; font-size: 24px;
}
.ai-tool-name { font-size: 17px; margin-bottom: 8px; }
.ai-tool-usage { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- Projects ---------- */
.projects-carousel { position: relative; }
.projects-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

.project-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
	display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: rgba(124, 92, 255, 0.4); }

.project-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gradient); }
.project-card:nth-child(3n+2) .project-thumb { background: linear-gradient(135deg, #eef1f8, #c7d2fe); }
.project-card:nth-child(3n) .project-thumb { background: linear-gradient(135deg, #10141f, #1e2438); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; color: rgba(255,255,255,0.65); }
.project-number {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px;
}
.project-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-title { font-size: 18px; }
.project-description { color: var(--text-muted); font-size: 14px; line-height: 1.65; flex: 1; }

.carousel-dots { display: none; justify-content: center; gap: 8px; margin-top: 30px; }
.carousel-dots .dot, .testimonial-dots .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); border: 0; padding: 0; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.carousel-dots .dot.is-active, .testimonial-dots .dot.is-active { width: 26px; background: var(--gradient); }

/* ---------- CTA / Contact ---------- */
.cta-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr; gap: 48px; align-items: start; }
.cta-copy .btn { margin-top: 26px; }

.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s var(--ease); }
.testimonial-slide { flex: 0 0 100%; min-width: 0; }

.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; height: 100%; }
.testimonial-quote-icon { color: var(--primary); opacity: 0.4; font-size: 22px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 22px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { color: var(--text-muted); font-size: 12.5px; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }

.cta-follow-label { font-size: 12px; letter-spacing: 1px; color: var(--text-dim); font-weight: 600; margin: 0 0 18px; }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.social-icons a {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
	display: flex; align-items: center; justify-content: center; color: var(--text-muted);
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-icons a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-4px); }
.cta-contact-line { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; transition: color 0.3s var(--ease); }
.cta-contact-line:hover { color: #a996ff; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--text-dim); font-size: 13px; }

.back-to-top {
	position: fixed; right: 24px; bottom: 96px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; z-index: 500;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 600; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.chat-bubble {
	position: relative; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
	background: var(--gradient); color: #fff; border: 0; cursor: pointer;
	box-shadow: var(--shadow); transition: transform 0.3s var(--ease);
}
.chat-bubble:hover { transform: translateY(-3px) scale(1.05); }
.chat-bubble-icon {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-bubble-icon .codecraft-icon { width: 24px; height: 24px; }
.chat-bubble-icon-close { opacity: 0; transform: scale(0.5) rotate(-45deg); }
.chat-bubble.is-open .chat-bubble-icon-open { opacity: 0; transform: scale(0.5) rotate(45deg); }
.chat-bubble.is-open .chat-bubble-icon-close { opacity: 1; transform: none; }

.chat-panel {
	width: min(340px, calc(100vw - 48px));
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden;
	animation: chat-panel-in 0.25s var(--ease);
}
@keyframes chat-panel-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

.chat-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.chat-panel-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.chat-panel-intro { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.chat-panel-close { background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px; flex-shrink: 0; transition: color 0.3s var(--ease); }
.chat-panel-close:hover { color: var(--text); }
.chat-panel-close .codecraft-icon { width: 18px; height: 18px; }

.chat-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-form input, .chat-form textarea {
	width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
	padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 13.5px; resize: vertical;
	transition: border-color 0.3s var(--ease);
}
.chat-form input::placeholder, .chat-form textarea::placeholder { color: var(--text-dim); }
.chat-form input:focus, .chat-form textarea:focus { outline: none; border-color: var(--primary); }
.chat-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-submit { width: 100%; justify-content: center; margin-top: 4px; }
.chat-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-form-status { display: none; font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: var(--radius-sm); }
.chat-form-status.is-visible { display: block; }
.chat-form-status.is-success { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.chat-form-status.is-error { background: rgba(239, 68, 68, 0.12); color: #f87171; }

@media (max-width: 480px) {
	.chat-widget { right: 16px; bottom: 16px; }
	.back-to-top { right: 16px; }
}

/* ---------- Blog / single content ---------- */
.blog-section { padding-top: 168px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.blog-card-meta { color: var(--text-dim); font-size: 12.5px; letter-spacing: 0.5px; text-transform: uppercase; }
.blog-card-title { font-size: 19px; line-height: 1.35; }
.blog-card-title a:hover { color: #a996ff; }
.blog-card-excerpt { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 50px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); transition: all 0.3s var(--ease); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gradient); color: #fff; border-color: transparent; }

.single-post { padding-top: 168px; }
.single-post-header { margin-bottom: 30px; }
.single-post-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.single-post-content { color: var(--text-muted); font-size: 16px; line-height: 1.85; }
.single-post-content h2, .single-post-content h3, .single-post-content h4 { color: var(--text); margin: 40px 0 16px; }
.single-post-content p { margin-bottom: 20px; }
.single-post-content a { color: #a996ff; text-decoration: underline; text-underline-offset: 3px; }
.single-post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px; padding-left: 22px; }
.single-post-content blockquote { border-left: 3px solid var(--primary); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--text); font-style: italic; }
.single-post-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; }
.page-links { margin-top: 30px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { margin-top: 32px; }
	.hero-photo-wrap { max-width: 320px; margin: 0 auto; }
	.about-inner { grid-template-columns: 1fr; }
	.cta-inner { grid-template-columns: 1fr; }
	.cta-inner > * { max-width: 560px; }
}

@media (max-width: 900px) {
	.primary-nav { position: fixed; top: 76px; right: -100%; width: 100%; height: calc(100vh - 76px);
		background: rgba(13, 17, 32, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
		padding: 32px 28px; z-index: 950;
		transition: right 0.35s var(--ease); overflow-y: auto; }
	.primary-nav.is-open { right: 0; }
	.nav-menu { flex-direction: column; align-items: center; gap: 24px; width: 100%; text-align: center; }
	.menu-toggle { display: inline-flex; }
	.header-actions .btn-sm { padding: 9px 16px; font-size: 13px; }
	.skills-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 700px) {
	.section { padding: 70px 0; }
	.hero { padding: 140px 0 80px; }
	.about-stats { grid-template-columns: 1fr 1fr; }
	.hero-visual { flex-direction: column; }
	.hero-code-card { position: static; flex: none; width: 100%; margin-top: -30px; }

	.projects-track {
		display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch; gap: 20px; padding-bottom: 4px;
	}
	.projects-track::-webkit-scrollbar { display: none; }
	.project-card { flex: 0 0 100%; scroll-snap-align: start; }
	.carousel-dots { display: flex; }
}

@media (max-width: 480px) {
	.container { padding: 0 18px; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn { justify-content: center; }
	.about-stats { grid-template-columns: 1fr; }
	.header-actions .btn-sm span { display: none; }
}
