/* ==========================================================================
   AppForge.NL — Modern Dark Theme
   ========================================================================== */

:root {
	--color-bg: #0c0c10;
	--color-bg-elevated: #14141c;
	--color-bg-card: #1a1a24;
	--color-border: rgba(255, 255, 255, 0.08);
	--color-text: #e8e8ed;
	--color-text-muted: #9898a6;
	--color-accent: #f59e0b;
	--color-accent-hover: #fbbf24;
	--color-accent-dark: #ea580c;
	--color-blue: #3b82f6;
	--color-purple: #8b5cf6;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
	--shadow-glow: 0 0 60px rgba(245, 158, 11, 0.15);
	--container: 1200px;
	--header-height: 72px;
	--transition: 0.25s ease;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-accent-hover);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.container--narrow {
	max-width: 800px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}

.btn--primary {
	background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
	color: #0c0c10;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
	color: #0c0c10;
}

.btn--ghost {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.btn--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn--lg {
	padding: 16px 32px;
	font-size: 16px;
}

.btn--sm {
	padding: 8px 16px;
	font-size: 14px;
}

.btn--full {
	width: 100%;
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	background: rgba(12, 12, 16, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	text-decoration: none;
}

.site-brand:hover {
	color: var(--color-text);
}

.site-brand__text {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.site-brand__text strong {
	font-weight: 800;
}

.site-brand__tld {
	color: var(--color-accent);
	font-weight: 700;
}

.site-brand .custom-logo-link img {
	max-height: 40px;
	width: auto;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	border-radius: 2px;
	transition: var(--transition);
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list a {
	color: var(--color-text-muted);
	font-size: 15px;
	font-weight: 500;
}

.primary-nav__list a:hover {
	color: var(--color-text);
}

/* Hero */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-height) + 60px) 0 80px;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(100px);
}

.hero__glow--1 {
	width: 500px;
	height: 500px;
	background: rgba(245, 158, 11, 0.12);
	top: -100px;
	right: -100px;
}

.hero__glow--2 {
	width: 400px;
	height: 400px;
	background: rgba(59, 130, 246, 0.08);
	bottom: -100px;
	left: -100px;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-bottom: 24px;
}

.hero__badge-dot {
	width: 8px;
	height: 8px;
	background: var(--color-accent);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.hero__title {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 24px;
	background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-muted);
	max-width: 540px;
	margin: 0 0 36px;
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 48px;
}

.hero__stats {
	display: flex;
	gap: 40px;
}

.hero__stat strong {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: var(--color-accent);
	margin-bottom: 4px;
}

.hero__stat span {
	font-size: 13px;
	color: var(--color-text-muted);
}

.hero__visual {
	position: relative;
	height: 400px;
}

.hero__card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.hero__card--main {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 380px;
}

.hero__card-header {
	display: flex;
	gap: 6px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--color-border);
}

.hero__card-header span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-border);
}

.hero__card-header span:first-child { background: #ef4444; }
.hero__card-header span:nth-child(2) { background: #f59e0b; }
.hero__card-header span:nth-child(3) { background: #22c55e; }

.hero__card-body {
	padding: 24px;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 14px;
	line-height: 1.8;
}

.hero__code-line { color: var(--color-text-muted); }
.code-keyword { color: #c084fc; }
.code-var { color: #60a5fa; }
.code-fn { color: #f59e0b; }
.code-string { color: #34d399; }

.hero__card--float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 600;
	animation: float 6s ease-in-out infinite;
}

.hero__card--float-1 {
	top: 20px;
	right: 0;
	animation-delay: 0s;
}

.hero__card--float-2 {
	bottom: 40px;
	left: 0;
	animation-delay: 3s;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Sections */
.section {
	padding: 100px 0;
}

.section__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 60px;
}

.section__label {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent);
	margin-bottom: 12px;
}

.section__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	line-height: 1.2;
}

.section__desc {
	color: var(--color-text-muted);
	font-size: 17px;
	margin: 0;
	line-height: 1.7;
}

.section__footer {
	text-align: center;
	margin-top: 48px;
}

/* Services */
.services {
	background: var(--color-bg-elevated);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.service-card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	transition: all var(--transition);
}

.service-card:hover {
	border-color: rgba(245, 158, 11, 0.3);
	transform: translateY(-4px);
	box-shadow: var(--shadow-glow);
}

.service-card__icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	margin-bottom: 20px;
}

.service-card__icon--webapp {
	background: rgba(245, 158, 11, 0.15);
	color: var(--color-accent);
}

.service-card__icon--website {
	background: rgba(59, 130, 246, 0.15);
	color: var(--color-blue);
}

.service-card__icon--solution {
	background: rgba(139, 92, 246, 0.15);
	color: var(--color-purple);
}

.service-card__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
}

.service-card__desc {
	color: var(--color-text-muted);
	font-size: 15px;
	margin: 0 0 20px;
	line-height: 1.6;
}

.service-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 100px;
	color: var(--color-text-muted);
}

/* Portfolio */
.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.portfolio-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.portfolio-card__image {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4/3;
	margin-bottom: 16px;
}

.portfolio-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__image img {
	transform: scale(1.05);
}

.portfolio-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
	position: relative;
}

.portfolio-card__placeholder::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent, rgba(var(--accent, 245, 158, 11), 0.1));
}

.portfolio-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 16, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
	opacity: 1;
}

.portfolio-card__view {
	font-weight: 600;
	color: var(--color-accent);
}

.portfolio-card__category {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-accent);
}

.portfolio-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 6px 0 8px;
}

.portfolio-card__excerpt {
	font-size: 14px;
	color: var(--color-text-muted);
	margin: 0;
}

/* About */
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.about__content p {
	color: var(--color-text-muted);
	margin: 0 0 16px;
	line-height: 1.7;
}

.about__features {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
}

.about__features li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: var(--color-text);
	font-weight: 500;
}

.about__card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 32px;
}

.about__card-item {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.about__card-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.about__card-item:first-child {
	padding-top: 0;
}

.about__card-number {
	font-size: 14px;
	font-weight: 800;
	color: var(--color-accent);
	min-width: 32px;
}

.about__card-item strong {
	display: block;
	margin-bottom: 4px;
}

.about__card-item p {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

/* Contact */
.contact {
	background: var(--color-bg-elevated);
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}

.contact__details {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
}

.contact__details li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: var(--color-text-muted);
}

.contact__details a {
	color: var(--color-text);
}

.contact__details a:hover {
	color: var(--color-accent);
}

.contact-form {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 32px;
}

.form-row {
	margin-bottom: 20px;
}

.form-row label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--color-text);
}

.form-row input,
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--color-accent);
}

.form-row textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-form__note {
	font-size: 13px;
	color: var(--color-text-muted);
	margin: 16px 0 0;
	text-align: center;
}

/* CTA Banner */
.cta-banner {
	padding: 80px 0;
}

.cta-banner__inner {
	text-align: center;
	padding: 60px 40px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.05));
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: var(--radius-xl);
}

.cta-banner__inner h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	margin: 0 0 12px;
}

.cta-banner__inner p {
	color: var(--color-text-muted);
	margin: 0 0 28px;
	font-size: 17px;
}

/* Footer */
.site-footer {
	background: var(--color-bg-elevated);
	border-top: 1px solid var(--color-border);
	padding: 60px 0 24px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.site-footer__tagline {
	color: var(--color-accent);
	font-weight: 600;
	font-size: 14px;
	margin: 12px 0 8px;
}

.site-footer__desc {
	color: var(--color-text-muted);
	font-size: 14px;
	margin: 0;
}

.site-footer h4 {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 16px;
	color: var(--color-text-muted);
}

.footer-menu,
.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li,
.footer-contact li {
	padding: 6px 0;
}

.footer-menu a,
.footer-contact a {
	color: var(--color-text-muted);
	font-size: 14px;
}

.footer-menu a:hover,
.footer-contact a:hover {
	color: var(--color-accent);
}

.site-footer__bottom {
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	text-align: center;
}

.site-footer__bottom p {
	margin: 0;
	font-size: 13px;
	color: var(--color-text-muted);
}

/* Page content */
.page-content {
	padding-top: calc(var(--header-height) + 60px);
}

.entry__header {
	margin-bottom: 32px;
}

.entry__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 800;
	margin: 0;
}

.entry__meta {
	font-size: 14px;
	color: var(--color-text-muted);
}

.entry__content {
	color: var(--color-text-muted);
	line-height: 1.8;
}

.entry__content h2,
.entry__content h3 {
	color: var(--color-text);
}

.entry__thumbnail {
	margin-bottom: 32px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* 404 */
.error-404__inner {
	text-align: center;
	padding: 60px 0;
}

.error-404__code {
	display: block;
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
}

.error-404 h1 {
	margin: 0 0 12px;
}

.error-404 p {
	color: var(--color-text-muted);
	margin: 0 0 28px;
}

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text-muted);
	font-weight: 500;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #0c0c10;
}

/* Responsive */
@media (max-width: 1024px) {
	.hero__inner,
	.about__grid,
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero__visual {
		height: 320px;
		order: -1;
	}

	.services__grid,
	.portfolio__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: flex;
	}

	.primary-nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 24px;
		background: var(--color-bg);
		border-top: 1px solid var(--color-border);
		transform: translateX(100%);
		transition: transform var(--transition);
	}

	.primary-nav.is-open {
		transform: translateX(0);
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-nav__list li {
		border-bottom: 1px solid var(--color-border);
	}

	.primary-nav__list a {
		display: block;
		padding: 16px 0;
		font-size: 17px;
	}

	.nav-cta {
		margin-top: 16px;
	}

	.hero__stats {
		flex-direction: column;
		gap: 20px;
	}

	.services__grid,
	.portfolio__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 60px 0;
	}
}
