/* IBM Plex Sans Condensed (headings) */
@font-face {
	font-family: 'IBM Plex Sans Condensed';
	src: url('/assets/fonts/IBMPlexSansCond-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
:root {
	--color-bg: #000000;
	--color-text: #ffffff;
	--color-faded: #ccc;
	--color-primary: #e6185d;
	--color-hover: #c3144e;
	--color-border: #222222;
	--color-light: #111111;

	--fs-300: clamp(0.884rem, 0.9065rem + -0.0291vw, 0.9rem);
	--fs-base: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
	--fs-500: clamp(1.4063rem, 1.2585rem + 0.6568vw, 1.7675rem);
	--fs-600: clamp(1.7578rem, 1.4545rem + 1.3481vw, 2.4992rem);

	/* Animation Variables */
	--transition-fast: 200ms ease-out;
	--transition-medium: 300ms ease-out;
	--transition-slow: 500ms ease-out;
	--scale-hover: 1.02;
	--translate-y-hover: -4px;
	--rotate-hover: 2deg;
	--fs-700: clamp(2.1973rem, 1.6504rem + 2.4303vw, 3.5339rem);
	--fs-800: clamp(2.7466rem, 1.826rem + 4.0916vw, 4.997rem);
	--fs-900: clamp(3.4332rem, 1.9472rem + 6.6046vw, 7.0657rem);

	--space: clamp(1rem, 2vw, 2rem);
	--max-width: 1400px;
	--font-body: system-ui, sans-serif;
	--font-heading: 'IBM Plex Sans Condensed', sans-serif;
}

/* CSS RESET */

*,
*::before,
*::after {
	box-sizing: border-box;
}
* {
	margin: 0;
	padding: 0;
	font: inherit;
}
html,
body {
	height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		interpolate-size: allow-keywords;
	}
}
body {
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.5;
	font-size: var(--fs-base);
	-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}
input,
button,
textarea,
select {
	font: inherit;
}
button,
input[type='button'],
input[type='submit'] {
	cursor: pointer;
	border: none;
	background: none;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}
p {
	text-wrap: pretty;
}
#root,
#__next {
	isolation: isolate;
}
strong {
	font-weight: 700;
}
/* TYPORGRAPHY */

/*! Typebase.less v0.1.0 | MIT License */
html {
	font-family: var(--font-body);
	font-size: 100%;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}
p {
	line-height: 1.5;
	margin-top: 1.5rem;
	margin-bottom: 0;
}
ul,
ol {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}
ul li,
ol li {
	line-height: 1.5;
}
ul ul,
ol ul,
ul ol,
ol ol {
	margin-top: 0;
	margin-bottom: 0;
}
blockquote {
	line-height: 1.5;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	margin-top: 1.5rem;
	margin-bottom: 0;
	line-height: 1.2;
	text-transform: uppercase;
}
h1,
.h1 {
	font-size: var(--fs-800);
	margin-top: 3rem;
}
h2,
.h2 {
	font-size: var(--fs-700);
	margin-top: 3rem;
}
h3,
.h3 {
	font-size: var(--fs-600);
}
h4,
.h4 {
	font-size: var(--fs-500);
}
h5,
.h5 {
	font-size: var(--fs-base);
}
h6,
.h6 {
	font-size: var(--fs-base);
	text-transform: unset;
}
table {
	margin-top: 1.5rem;
	border-spacing: 0px;
	border-collapse: collapse;
}
table td,
table th {
	padding: 0;
	line-height: 33px;
}
code {
	vertical-align: bottom;
}
.lead {
	font-size: var(--fs-500);
}
.small-print {
	font-size: var(--fs-300);
	margin-top: 0.5rem;
}
.hug {
	margin-top: 0;
}

/* Modern Animation Utilities */
.hover-lift {
	transition: transform var(--transition-medium);
}

.hover-lift:hover {
	transform: translateY(var(--translate-y-hover));
}

.hover-scale {
	transition: transform var(--transition-fast);
}

.hover-scale:hover {
	transform: scale(var(--scale-hover));
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* UTILITIES */
.clr-primary {
	color: var(--color-primary);
}
.faded {
	color: var(--color-faded);
}
.link-unstyled {
	color: unset;
	text-decoration-line: unset;
}
.link-unstyled:hover {
	color: unset;
}
.mt-3 {
	margin-top: 1rem;
}
.mt-4 {
	margin-top: 1.5rem;
}
.mt-5 {
	margin-top: 3rem;
}
.mt-6 {
	margin-top: 6rem;
}
.mx-auto {
	margin-inline: auto;
}
.text-center {
	text-align: center;
}
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* LAYOUT */

.wrapper {
	width: min(100% - 2 * var(--space), 1200px);
	margin-inline: auto;
}
.wrapper--wide {
	width: min(100% - 2 * var(--space), 1400px);
	margin-inline: auto;
}
.wrapper--narrow {
	width: min(100% - 2 * var(--space), 70ch);
	margin-inline: auto;
}
.section--hug {
	padding-block: var(--space);
}
.grid-2 {
	display: grid;
	gap: var(--gap, 2rem);
}
@media (min-width: 768px) {
	.grid-2 {
		grid-template-columns: 1fr 1fr;
	}
	.align-center {
		align-items: center;
	}
	.hero-content {
		--gap: 6em;
	}
}

/* ==== COMPONENTS ==== */

a {
	color: var(--color-primary);
	transition: color var(--transition-fast),
		background-color var(--transition-fast);
}
a:hover {
	color: var(--color-hover);
}
button,
.button {
	display: inline-block;
	background: var(--color-primary);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background var(--transition-fast), color var(--transition-fast),
		transform var(--transition-fast);
	text-transform: uppercase;
	font-weight: 700;
	font-family: var(--font-heading);
}
.button-outline {
	background: transparent;
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
}
.button:hover {
	background: var(--color-hover);
	color: #fff;
	transform: scale(var(--scale-hover));
}
.button-flex {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.button svg {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
}
.subtext {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

/* ==== HERO ==== */

.hero {
	position: relative;
	overflow: hidden;
	min-height: 950px;
	display: flex;
	align-items: center; /* vertical centering */
	justify-content: center; /* optional horizontal centering */
}
.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
	filter: grayscale(100%);
	opacity: 0.9;
}
/* gradient overlay: darker at the bottom, lighter at the top */
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.85) 40%,
		rgba(0, 0, 0, 0.8) 70%,
		rgba(0, 0, 0, 0.75) 100%
	);
}
.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hero ul {
	list-style: none;
	margin-left: 1.25rem;
}
.hero li {
	padding: 0.4rem 0;
	padding-left: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	border-left: 2px solid var(--color-primary);
	font-family: var(--font-body);
	font-size: 16px;
	text-transform: uppercase;
}
.hero li + li {
	margin-top: 0.25rem;
}

/* ==== LOGOS ==== */

/* ==== LOGOS SECTION ==== */
section.logos {
	background: var(--color-light);
}
.logos-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-items: center;
	align-items: center;
	gap: 3rem;
	padding: var(--space);
}

@media screen and (min-width: 768px) {
	.logos-grid {
		display: flex;
		justify-content: center;
		flex-wrap: nowrap; /* keep in one row */
		overflow-x: auto;
		scrollbar-width: none; /* hide Firefox scrollbar */
		width: 100%;
		max-width: var(--max-width);
		margin: 0 auto;
	}
	.logos-grid::-webkit-scrollbar {
		display: none; /* hide Chrome scrollbar */
	}
}

.logos-grid img {
	max-width: 100px;
	filter: brightness(0) invert(1); /* make black parts white */
	opacity: 0.7;
	transition: all 0.4s ease;
}

.logos-grid img:hover {
	opacity: 1;
}

/* ==== PROJECT CARDS ==== */

.carousel-wrapper {
	position: relative;
	padding-inline: var(--space);
}
.carousel {
	display: grid;
	padding-block: 3rem;
	gap: 1.5rem;
}
@media screen and (min-width: 768px) {
	.carousel {
		display: flex;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		gap: var(--space);
	}
	.carousel::-webkit-scrollbar {
		display: none;
	}
	.carousel .card {
		flex: 0 0 25%;
		max-width: 25%;
		box-sizing: border-box;
	}
}

.card {
	border-radius: 4px;
	background: #111;
	border: 1px solid #222;
	overflow: hidden;
	transition: all 0.4s ease;
}
.card img {
	width: 100%;
	height: auto;
	display: block;
}
.card-body {
	padding: 1rem;
}
.card-body p {
	font-size: var(--fs-300);
	color: var(--color-faded);
}
.carousel .card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.carousel .card h3 {
	text-transform: uppercase;
}

.arrow {
	display: none;
}
@media screen and (min-width: 768px) {
	.arrow {
		display: unset;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background: rgba(230, 24, 93, 0.06);
		border: 1px solid rgba(255, 255, 255, 0.1);
		backdrop-filter: blur(6px);
		color: #fff;
		border: none;
		border-radius: 0.25rem;
		padding: 0.5rem 1rem;
		cursor: pointer;
		z-index: 1;
		transition: background 0.4s ease;
	}
	.arrow:hover {
		background: rgba(255, 255, 255, 0.12);
	}
	.arrow.left {
		left: 0;
	}
	.arrow.right {
		right: 0;
	}
}

/* ==== CONTACT FORM ==== */

section.contact {
	padding-bottom: 3rem;
}
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1rem;
}
.contact-form label {
	font-weight: 600;
	color: var(--color-faded);
	font-size: 16px;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #333;
	border-radius: 4px;
	background: #111;
	color: #fff;
}
.contact-form button {
	align-self: start;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 1px solid var(--color-primary);
}

/* ==== HEADER & FOOTER ==== */

.header {
	padding-block: var(--space);
	display: flex;
	justify-content: center;
	align-items: center;
}
.header--absolute {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99;
}
.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.header .logo {
	max-width: 150px;
}
.header__button {
	border-radius: 50em;
	font-size: 16px;
}
.header__button:hover {
	transform: none;
}
@media screen and (max-width: 600px) {
	.header__button {
		display: none;
	}
}
.footer {
	background: var(--color-bg);
	color: var(--color-text);
	border-color: var(--color-border);
	text-align: center;
	font-size: 0.9rem;
	border-top: 1px solid var(--color-border);
}
.footer a {
	color: inherit;
	text-decoration: none;
}
.footer a:hover {
	text-decoration: underline;
}

/* Project page */

.project {
	padding-bottom: 3rem;
}
.project-overview {
	position: relative;
	display: flex;
	min-height: 500px;
	overflow: hidden;
}

.project-overview__bg {
	position: absolute;
	top: -10px;
	left: -10px;
	right: -10px;
	bottom: -10px;
	background-size: cover;
	background-position: center;
	filter: blur(5px);
	transform: scale(1.1);
	z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
	.project-overview__bg {
		transform: none !important;
		position: fixed; /* optional fallback: keep it subtle but static */
	}
}

.project-overview__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.project-overview::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 0;
}
.project-overview__content > * {
	z-index: 9;
}
.project-content {
	padding-block: 3em;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
	margin-top: 3rem;
}

.gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	cursor: zoom-in;
	opacity: 0;
	transform: translateY(10px);
	animation: fadeUp 0.6s ease forwards;
}

.gallery__item:nth-child(2) {
	animation-delay: 0.1s;
}
.gallery__item:nth-child(3) {
	animation-delay: 0.2s;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	transition: transform 0.35s ease, border-color 0.3s ease;
}

.gallery__item:hover img {
	transform: scale(1.03);
	border-color: var(--color-primary);
}

/* Image modal */
.image-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.image-modal.open {
	display: flex;
}

.image-modal__content {
	max-width: 90%;
	max-height: 90%;
	border-radius: 4px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s ease;
}

.image-modal.open .image-modal__content {
	transform: scale(1.02);
}

.image-modal__close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.image-modal__close:hover {
	opacity: 0.7;
}

@media (max-width: 600px) {
	.gallery {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 0.75rem;
	}
}

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
