:root {
	--color-bg: #111111;
	--color-surface: #1c1c1c;
	--color-primary: #e2571e;
	--color-primary-dark: #c0490f;
	--color-text: #f5f3f0;
	--color-text-muted: #a8a29c;
	--font-heading: 'Archivo', Helvetica, Arial, sans-serif;
	--container-width: 1100px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--font-heading);
	color: var(--color-text-muted);
	background-color: var(--color-bg);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */

.site-header {
	background-color: var(--color-bg);
	border-bottom: 3px solid var(--color-primary);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: none;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding-top: 12px;
	padding-bottom: 12px;
}

.brand-logo {
	width: clamp(150px, 26vw, 220px);
}

.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	z-index: 20;
}

.nav-toggle-label span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: var(--color-text);
}

.site-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--color-bg);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.25s ease;
}

.nav-toggle:checked~.site-nav {
	max-height: 240px;
}

.site-nav a {
	color: var(--color-text-muted);
	text-decoration: none;
	font-weight: 600;
	padding: 14px 20px;
	width: 100%;
	text-align: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.nav-toggle-label {
		display: none;
	}

	.site-nav {
		position: static;
		flex-direction: row;
		max-height: none;
		background-color: transparent;
		width: auto;
	}

	.site-nav a {
		width: auto;
		padding: 8px 16px;
	}
}

/* Buttons */

.btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 999px;
	padding: 12px 28px;
	border: 2px solid var(--color-primary);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}

.btn-outline {
	background-color: transparent;
	color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

/* Hero */

.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--color-bg);
	color: var(--color-text);
	text-align: center;
	padding: 0 0 88px;
}

.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.5;
	z-index: 0;
}

.hero-vignette {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at center, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.65) 55%, rgba(17, 17, 17, 0.95) 100%);
}

.hero-pulses {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100svh;
	z-index: 1;
	pointer-events: none;
}

.hero-pulses path {
	fill: none;
	vector-effect: non-scaling-stroke;
	stroke-linejoin: round;
}

.hero-pulses .pulse-core {
	stroke: #ff8a4c;
	stroke-width: 1.2;
}

@media (prefers-reduced-motion: reduce) {
	.hero-pulses {
		display: none;
	}
}

.hero-inner {
	position: relative;
	z-index: 2;
}

.hero-screen {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.hero-reveal {
		transition: none;
	}
}

.hero-logo-glow {
	position: relative;
	display: inline-block;
	margin: 0 auto;
	padding: clamp(16px, 4vw, 32px) clamp(16px, 5vw, 40px);
}

.hero-logo-glow::before {
	content: '';
	position: absolute;
	inset: -20% -16%;
	z-index: -1;
	background: radial-gradient(ellipse at center,
			rgba(250, 224, 200, 0.92) 0%,
			rgba(240, 180, 140, 0.55) 45%,
			rgba(226, 87, 30, 0.22) 72%,
			rgba(226, 87, 30, 0) 100%);
	filter: blur(22px);
	pointer-events: none;
	animation: hero-glow-on 2s ease-in-out 1.8s both;
}

@keyframes hero-glow-on {
	from {
		opacity: 0.4;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-logo-glow::before {
		animation: none;
	}
}

.hero-logo {
	width: clamp(280px, 60vw, 620px);
	margin: 0 auto;
}

.hero-tagline {
	margin: 0 auto 28px;
	color: var(--color-primary);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.4vw + 0.8rem, 2.25rem);
	line-height: 1.25;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* Sections */

.section {
	padding: 64px 0;
	scroll-margin-top: 96px;
}

.section-title {
	font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
	font-weight: 800;
	text-align: center;
	margin: 0 0 16px;
	color: var(--color-text);
}

.section-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin: 16px auto 40px;
	background-color: var(--color-primary);
	border-radius: 2px;
}

/* Card grid (about + projects) */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.card {
	background-color: var(--color-surface);
	border-radius: 16px;
	padding: 28px;
	text-decoration: none;
	color: inherit;
}

.about .card {
	border-top: 4px solid var(--color-primary);
}

.about .card h3 {
	margin-top: 0;
	color: var(--color-text);
	font-size: 1.25rem;
}

.about .card p {
	margin-bottom: 0;
}

.project-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

a.project-card:hover,
a.project-card:focus-visible {
	border-color: var(--color-primary);
}

.project-card img {
	max-height: 130px;
	width: auto;
	margin: 0 auto;
}

.project-card-stack {
	flex-direction: column;
	gap: 4px;
}

.project-card-stack img {
	max-height: 110px;
	margin: -28px auto -30px;
}

.project-card-stack .project-card-maaser-logo {
	max-height: 70px;
	margin: 0 auto;
}

.project-card-name {
	color: #2cacbc;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: 0.01em;
	margin-top: 8px;
}

.project-card-stack-icon {
	max-height: 68px !important;
	margin: 0 auto !important;
}

.project-card-placeholder {
	font-weight: 700;
	text-align: center;
	border: 2px dashed var(--color-primary);
	background-color: transparent;
	color: var(--color-primary);
}

/* Contact */

.contact-intro {
	text-align: center;
	margin: 0 0 28px;
}

.contact-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	max-width: 560px;
	margin: 0 auto;
}

.contact-option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px 24px;
	border-radius: 16px;
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-option svg {
	flex-shrink: 0;
	fill: currentColor;
}

.contact-option:hover,
.contact-option:focus-visible {
	transform: translateY(-2px);
}

.contact-option-whatsapp {
	background-color: #25d366;
	color: #ffffff;
}

.contact-option-email {
	background-color: var(--color-primary);
	color: var(--color-bg);
}

.contact-option-email:hover,
.contact-option-email:focus-visible {
	background-color: var(--color-primary-dark);
}

.contact-address {
	text-align: center;
	margin: 20px 0 0;
	font-size: 0.95rem;
}

/* Footer */

.site-footer {
	background-color: var(--color-bg);
	color: var(--color-text-muted);
	text-align: center;
	padding: 24px 0;
	font-size: 0.9rem;
	border-top: 3px solid var(--color-primary);
}

.site-footer strong {
	color: var(--color-primary);
}

.footer-tagline {
	color: var(--color-primary);
	font-weight: 800;
	font-size: 1.1rem;
	margin: 0 0 8px;
}

/* WhatsApp button */

.whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #25d366;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 0;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
	display: block;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	fill: #ffffff;
}

@media (max-width: 480px) {
	.whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.whatsapp-float svg {
		width: 28px;
		height: 28px;
	}
}
