/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@500&display=swap');

/* --- CSS Variables --- */
:root {
	--color-background: #1a1a1d;
	--color-text: #f5f5f5;
	--color-primary: #4ecdc4;
	--color-primary-hover: #c7f9cc;
	--color-subtle: #595959;
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Roboto Mono', monospace;
	--container-width: 1140px;
	--container-padding: 1.5rem;
	--header-height: 70px;
}

/* --- Global Styles & Resets --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--color-background);
	color: var(--color-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text);
	line-height: 1.3;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-primary-hover);
}

ul {
	list-style: none;
}

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

.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* --- Header --- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(26, 26, 29, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid var(--color-subtle);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-text);
}

.logo:hover {
	color: var(--color-text);
}

.logo__icon path {
	transition: fill 0.3s ease;
}

.logo:hover .logo__icon path {
	fill: var(--color-primary);
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav__link {
	font-size: 1rem;
	color: var(--color-text);
	position: relative;
	padding: 0.5rem 0;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__link--cta {
	border: 1px solid var(--color-primary);
	padding: 0.5rem 1rem;
	border-radius: 5px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: var(--color-primary);
	color: var(--color-background);
}

.nav__link--cta::after {
	display: none;
}

.burger {
	display: none;
	background: none;
	border: none;
	color: var(--color-text);
	cursor: pointer;
}

/* --- Footer --- */
.footer {
	background-color: #111;
	padding-top: 4rem;
	border-top: 1px solid var(--color-subtle);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding-bottom: 4rem;
}

.footer__column--about {
	max-width: 320px;
}

.footer__logo {
	margin-bottom: 1rem;
}

.footer__description {
	color: #a0a0a0;
	font-size: 0.9rem;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--color-text);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: #a0a0a0;
	font-size: 0.9rem;
}

.footer__link:hover {
	color: var(--color-primary);
}

.footer__address {
	font-style: normal;
	color: #a0a0a0;
	font-size: 0.9rem;
}

.footer__bottom {
	padding: 1.5rem 0;
	border-top: 1px solid var(--color-subtle);
	text-align: center;
	font-size: 0.85rem;
	color: #a0a0a0;
}

/* --- Mobile Styles (Mobile-First) --- */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-background);
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		padding-top: 2rem;
	}

	.nav.is-active {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.5rem;
	}

	.burger {
		display: block;
		z-index: 101;
	}
}

/* --- Button --- */
.button {
	display: inline-block;
	padding: 0.8rem 2rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-background);
	background-color: var(--color-primary);
	border: 1px solid var(--color-primary);
	border-radius: 5px;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: transparent;
	color: var(--color-primary);
	transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 3rem;
}

.hero__title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.hero__description {
	font-size: 1.1rem;
	color: #c0c0c0;
	max-width: 500px;
	margin-bottom: 2.5rem;
}

.hero__visual {
	width: 100%;
	height: 300px; /* Default height for mobile */
	border-radius: 8px;
	overflow: hidden;
	background-color: #111;
	border: 1px solid var(--color-subtle);
}

#matrix-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* --- Responsive Styles --- */
@media (min-width: 768px) {
	.hero {
		min-height: 80vh; /* Adjust height for desktop */
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
	}

	.hero__visual {
		height: 450px; /* Taller on larger screens */
	}
}

@media (min-width: 992px) {
	.hero__title {
		font-size: 3rem;
	}

	.hero__description {
		font-size: 1.25rem;
	}
}

/* --- Global Section Styles --- */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section:nth-of-type(odd) {
	background-color: #212124; /* Slightly different background for visual separation */
}

.section__title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
}

@media (max-width: 768px) {
	.section__title {
		font-size: 2rem;
	}
}

/* --- Career Section --- */
.career__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.career-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-background);
	border: 1px solid var(--color-subtle);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	color: var(--color-text);
}

.career-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	color: var(--color-text);
}

.career-card__image-wrapper {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.career-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.career-card:hover .career-card__image {
	transform: scale(1.05);
}

.career-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Makes content area fill the space */
}

.career-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.career-card__description {
	font-size: 0.95rem;
	color: #a0a0a0;
	margin-bottom: 1rem;
	flex-grow: 1; /* Pushes tags to the bottom */
}

.career-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.career-card__tag {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	background-color: var(--color-subtle);
	color: var(--color-text);
	padding: 0.25rem 0.75rem;
	border-radius: 15px;
}

/* --- Tech Section --- */
.tech__tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.tech__tab-button {
	padding: 0.75rem 1.5rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	background: none;
	border: 1px solid var(--color-subtle);
	color: var(--color-text);
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tech__tab-button:hover {
	background-color: var(--color-subtle);
}

.tech__tab-button.is-active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-background);
}

.tech__content-wrapper {
	position: relative;
	min-height: 350px; /* Adjust as needed */
}

.tech__content {
	display: none; /* Hidden by default via JS */
	align-items: center;
	gap: 3rem;
	animation: fadeIn 0.5s ease-in-out;
}

.tech__content.is-active {
	display: grid; /* Use grid for layout */
	grid-template-columns: 1fr 1fr;
}

.tech__content-title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.tech__content p {
	font-size: 1.1rem;
	color: #c0c0c0;
	max-width: 500px;
}

.tech__content-image img {
	border-radius: 8px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-height: 350px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Responsive Styles for Tech Section --- */
@media (max-width: 768px) {
	.tech__content.is-active {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.tech__content-text {
		order: 2; /* Text appears after image on mobile */
	}

	.tech__content-image {
		order: 1;
	}

	.tech__content-title {
		font-size: 1.5rem;
	}

	.tech__content p {
		margin-left: auto;
		margin-right: auto;
	}
}

/* --- Products Section --- */
.products {
	padding-bottom: 5rem;
	/* We handle top padding in the .section class */
}

.products__scroll-container {
	display: flex;
	overflow-x: auto;
	gap: 1.5rem;
	/* Add padding to the sides to not have cards stick to the edges */
	padding: 0 var(--container-padding) 1.5rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom Scrollbar Styling */
.products__scroll-container::-webkit-scrollbar {
	height: 8px;
}
.products__scroll-container::-webkit-scrollbar-track {
	background: #2c2c2f;
	border-radius: 10px;
}
.products__scroll-container::-webkit-scrollbar-thumb {
	background-color: var(--color-primary);
	border-radius: 10px;
	border: 2px solid #2c2c2f;
}
.products__scroll-container::-webkit-scrollbar-thumb:hover {
	background-color: var(--color-primary-hover);
}

.product-card {
	flex: 0 0 80%; /* Card takes 80% of the viewport width on mobile */
	max-width: 340px; /* Max width on larger screens */
	height: 380px;
	scroll-snap-align: start;
	background-color: var(--color-background);
	border: 1px solid var(--color-subtle);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end; /* Align content to the bottom */
	position: relative;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.product-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease-in-out;
}

.product-card:hover::before {
	transform: scaleX(1);
}

.product-card__category {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	color: var(--color-primary);
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.product-card__title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.product-card__description {
	font-size: 0.95rem;
	color: #a0a0a0;
}

.products__spacer {
	flex: 0 0 calc(var(--container-padding) / 2);
	scroll-snap-align: end;
}

/* --- Opinions Section --- */
.opinions__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

.opinion-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-subtle);
	border-radius: 8px;
	padding: 2.5rem 2rem 2rem;
	position: relative;
}

.opinion-card__quote {
	font-size: 1.25rem;
	font-style: italic;
	color: var(--color-text);
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
}

.opinion-card__quote::before {
	content: '“';
	font-family: 'Times New Roman', Times, serif;
	position: absolute;
	top: -2.5rem;
	left: -1rem;
	font-size: 6rem;
	color: var(--color-subtle);
	opacity: 0.3;
	z-index: -1;
	line-height: 1;
}

.opinion-card__author {
	display: flex;
	flex-direction: column;
}

.opinion-card__name {
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--color-text);
}

.opinion-card__title {
	font-size: 0.9rem;
	color: #a0a0a0;
}

/* --- Contact Section --- */
.contact {
	background-color: #212124;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

.contact__title {
	text-align: left;
	margin-bottom: 1rem;
}

.contact__description {
	font-size: 1.1rem;
	color: #c0c0c0;
	max-width: 450px;
}

.contact__form-wrapper {
	position: relative;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group__label {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: #a0a0a0;
}

.form-group__input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-subtle);
	border-radius: 5px;
	color: var(--color-text);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.form-group__checkbox-input {
	flex-shrink: 0;
	margin-top: 5px;
	width: 1.25em;
	height: 1.25em;
	accent-color: var(--color-primary);
}

.form-group__checkbox-label {
	font-size: 0.9rem;
	color: #a0a0a0;
}

.form-group__checkbox-label a {
	color: var(--color-primary);
	text-decoration: underline;
}

.contact-form__button {
	align-self: flex-start;
}

/* Success Message */
.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 3rem;
	border: 1px solid var(--color-primary);
	border-radius: 8px;
	background-color: var(--color-background);
}

.success-message.is-visible {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
}

.success-message__title {
	font-size: 2rem;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212124;
    border-top: 1px solid var(--color-subtle);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

.cookie-popup__text {
    color: #c0c0c0;
    text-align: center;
}

.cookie-popup__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 0.5rem 1.5rem; /* Smaller button */
    flex-shrink: 0;
}


/* --- Static Pages Styles (privacy.html, terms.html, etc.) --- */
.pages {
    padding-top: calc(var(--header-height) + 4rem); /* Header offset + padding */
    padding-bottom: 5rem;
}

.pages .container {
    max-width: 800px; /* Narrower container for readability */
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-subtle);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.pages p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #c0c0c0;
}

.pages a {
    text-decoration: underline;
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: #c0c0c0;
}

.pages strong {
    color: var(--color-text);
}


