/* =============== */
/* GLOBAL STYLES   */
/* =============== */
:root {
	--color-background: #1a1a2e;
	--color-text: #f0f0f0;
	--color-primary: #00bfff; /* DeepSkyBlue */
	--color-secondary: #e94560;
	--color-surface: #16213e;

	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Roboto Mono', monospace;

	--header-height: 70px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-heading);
	color: var(--color-primary);
}

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

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

ul {
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background-color: transparent;
	font-family: inherit;
}

/* =============== */
/* LOGO            */
/* =============== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--color-text);
}

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

.logo__icon {
	transition: transform 0.4s ease-in-out;
}

.logo:hover .logo__icon {
	transform: rotate(360deg);
}

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

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

.header__nav {
	display: none; /* Mobile first: hide desktop nav */
}

.header__burger {
	color: var(--color-text);
	z-index: 101; /* Above mobile menu overlay */
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
	.header__nav {
		display: flex;
		position: fixed;
		top: 0;
		left: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--color-surface);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease-in-out;
	}

	.header__nav--open {
		left: 0;
	}

	.header__nav-list {
		flex-direction: column;
		text-align: center;
		gap: 2rem;
	}

	.header__nav-link {
		font-size: 1.2rem;
	}
}

/* Desktop Menu Styles */
@media (min-width: 768px) {
	.header__nav {
		display: block;
	}

	.header__nav-list {
		display: flex;
		align-items: center;
		gap: 1.5rem;
	}

	.header__nav-link {
		position: relative;
		padding: 5px 0;
	}

	.header__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;
	}

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

	.header__burger {
		display: none;
	}
}

/* =============== */
/* FOOTER          */
/* =============== */
.footer {
	background-color: var(--color-surface);
	padding: 4rem 0 0;
	border-top: 1px solid var(--color-primary);
}

.footer__container {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer__title {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

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

.footer__link {
	color: rgba(240, 240, 240, 0.7);
}

.footer__link:hover {
	color: var(--color-primary);
	padding-left: 5px;
}

.footer__address {
	font-style: normal;
	color: rgba(240, 240, 240, 0.7);
}

.footer__bottom {
	margin-top: 3rem;
	padding: 1.5rem 0;
	text-align: center;
	border-top: 1px solid rgba(240, 240, 240, 0.1);
	font-size: 0.9rem;
	color: rgba(240, 240, 240, 0.5);
}

/* =============== */
/* BUTTON          */
/* =============== */
.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--color-primary);
	color: var(--color-background);
	font-family: var(--font-family-heading);
	font-size: 1rem;
	border-radius: 5px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 2px solid var(--color-primary);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2);
	color: var(--color-background);
}

/* =============== */
/* HERO            */
/* =============== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding-top: var(--header-height);
	text-align: center;
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__title {
	font-size: 2.5rem;
	max-width: 800px;
	margin-bottom: 1rem;
	line-height: 1.3;
	text-shadow: 0 0 15px rgba(26, 26, 46, 0.8);
}

.hero__subtitle {
	font-size: 1.1rem;
	max-width: 650px;
	margin-bottom: 2rem;
	color: rgba(240, 240, 240, 0.85);
	text-shadow: 0 0 10px rgba(26, 26, 46, 0.8);
}

/* Responsive adjustments for Hero */
@media (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}

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

/* =============== */
/* SECTION UTILS   */
/* =============== */
.section {
	padding: 5rem 0;
}

.section__title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 1rem;
}

.section__subtitle {
	font-size: 1.1rem;
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem;
	color: rgba(240, 240, 240, 0.8);
}

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

/* =============== */
/* WORKS SECTION   */
/* =============== */
.works {
	background-color: var(--color-surface);
}

.works__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.works__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.works__card {
	background-color: var(--color-background);
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.works__card:hover {
	transform: translateY(-5px);
	border-color: var(--color-primary);
}

.works__card-icon {
	margin-bottom: 1.5rem;
	color: var(--color-primary);
}

.works__card-icon i {
	width: 48px;
	height: 48px;
}

.works__card-title {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	color: var(--color-text);
}

.works__card-text {
	font-size: 0.95rem;
	color: rgba(240, 240, 240, 0.7);
	line-height: 1.7;
}

/* =============== */
/* TOPICS SECTION  */
/* =============== */
.topics__layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 992px) {
	.topics__layout {
		flex-direction: row;
		gap: 3rem;
	}
}

.topics__tabs {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	overflow-x: auto; /* For mobile scrolling */
}

@media (min-width: 992px) {
	.topics__tabs {
		flex-direction: column;
		flex-shrink: 0;
		width: 280px;
		overflow-x: visible;
	}
}

.topics__tab-button {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem;
	background-color: var(--color-surface);
	color: var(--color-text);
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 1rem;
	text-align: left;
	transition: background-color 0.3s, border-color 0.3s;
	flex-shrink: 0; /* Prevents shrinking on mobile */
}

.topics__tab-button:hover {
	background-color: rgba(240, 240, 240, 0.1);
}

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

.topics__tab-button i {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.topics__content-pane {
	display: none; /* Hidden by default */
	animation: fadeIn 0.5s ease-in-out;
}

.topics__content-pane--active {
	display: block; /* Shown when active */
}

@media (min-width: 768px) {
	.topics__content-pane--active {
		display: grid;
		grid-template-columns: 300px 1fr;
		gap: 2rem;
		align-items: start;
	}
}

.topics__pane-image {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 1rem;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

@media (min-width: 768px) {
	.topics__pane-image {
		margin-bottom: 0;
	}
}

.topics__pane-title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

.topics__pane-text p {
	margin-bottom: 1.5rem;
	color: rgba(240, 240, 240, 0.85);
}

.topics__pane-list {
	list-style: none;
	padding: 0;
}

.topics__pane-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 0.5rem;
}

.topics__pane-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300BFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

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

/* =============== */
/* FORMATS SECTION */
/* =============== */
.formats {
	background-color: var(--color-surface);
}

.formats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 576px) {
	.formats__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.formats__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.formats__card {
	position: relative;
	background-color: var(--color-background);
	padding: 2.5rem 2rem;
	border-radius: 8px;
	text-align: center;
	overflow: hidden; /* Important for the gradient border */
	border: 1px solid var(--color-surface);
	transition: transform 0.3s ease;
}

.formats__card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	padding: 2px;
	background: linear-gradient(
		45deg,
		var(--color-secondary),
		var(--color-primary)
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: destination-out;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.formats__card:hover {
	transform: translateY(-5px);
}

.formats__card:hover::before {
	opacity: 1;
}

.formats__card-icon {
	margin-bottom: 1.5rem;
	color: var(--color-primary);
}

.formats__card-icon i {
	width: 48px;
	height: 48px;
}

.formats__card-title {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	color: var(--color-text);
}

.formats__card-text {
	font-size: 0.95rem;
	color: rgba(240, 240, 240, 0.7);
	line-height: 1.7;
}

/* ================ */
/* FOR WHOM SECTION */
/* ================ */
.for-whom__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 992px) {
	.for-whom__layout {
		grid-template-columns: 1fr 1fr;
	}
}

.for-whom__image-wrapper {
	width: 100%;
}

.for-whom__image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Align titles to the left */
.for-whom__title,
.for-whom__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.for-whom__subtitle {
	margin-bottom: 2rem;
}

.for-whom__list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.for-whom__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.for-whom__item-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-surface);
	color: var(--color-primary);
	border-radius: 50%;
}

.for-whom__item-icon i {
	width: 24px;
	height: 24px;
}

.for-whom__item-text h3 {
	font-family: var(--font-family-heading);
	color: var(--color-text);
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.for-whom__item-text p {
	color: rgba(240, 240, 240, 0.7);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* ================ */
/* CONTACT SECTION  */
/* ================ */
.contact {
	background-color: var(--color-surface);
}

.contact__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-top: 2rem;
}

@media (min-width: 992px) {
	.contact__layout {
		grid-template-columns: 1fr 1.2fr;
	}
}

.contact__info h3 {
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.contact__info p {
	color: rgba(240, 240, 240, 0.8);
	margin-bottom: 2rem;
}

.contact__info-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__info-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

/* Form Styles */
.contact__form-wrapper {
	position: relative;
}

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

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 14px 16px;
	background-color: var(--color-background);
	border: 1px solid var(--color-surface);
	border-radius: 5px;
	color: var(--color-text);
	font-size: 1rem;
	transition: border-color 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form__label {
	display: none;
	position: absolute;
	top: 15px;
	left: 16px;
	color: rgba(240, 240, 240, 0.5);
	pointer-events: none;
	transition: all 0.3s ease;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
	top: -10px;
	left: 12px;
	font-size: 0.8rem;
	background-color: var(--color-surface);
	padding: 0 5px;
	color: var(--color-primary);
}

/* Checkbox */
.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.form__group--checkbox label {
	font-size: 0.9rem;
	color: rgba(240, 240, 240, 0.7);
}

.form__group--checkbox a {
	color: var(--color-primary);
	text-decoration: underline;
}

.form__group--checkbox input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	background-color: var(--color-background);
	border: 1px solid var(--color-primary);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin-top: 2px;
}

.form__group--checkbox input[type='checkbox']:checked {
	background-color: var(--color-primary);
}

.form__group--checkbox input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid var(--color-background);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact__button {
	width: 100%;
}

@media (min-width: 576px) {
	.contact__button {
		width: auto;
		align-self: flex-start;
	}
}

/* Form Message */
.form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 5px;
	background-color: #033a03;
	color: #9ef09e;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: opacity 0.4s, visibility 0.4s;
}

.form-message--hidden {
	opacity: 0;
	visibility: hidden;
	position: absolute;
}

/* ================ */
/* COOKIE POPUP     */
/* ================ */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-primary);
	padding: 1rem 0;
	z-index: 200;
	transition: transform 0.5s ease-in-out, visibility 0.5s;
	transform: translateY(0);
}

.cookie-popup--hidden {
	transform: translateY(100%);
	visibility: hidden;
}

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: rgba(240, 240, 240, 0.8);
}

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

.cookie-popup__accept {
	padding: 8px 20px; /* smaller button */
	flex-shrink: 0;
}

/* ================ */
/* POLICY PAGES     */
/* ================ */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.pages p,
.pages li {
	font-size: 1rem;
	line-height: 1.8;
	color: rgba(240, 240, 240, 0.85);
	margin-bottom: 1rem;
}

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

.pages a:hover {
	text-decoration: none;
}

.pages ul {
	list-style: none;
	padding-left: 1rem;
}

.pages ul li {
	position: relative;
	padding-left: 20px;
}

.pages ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--color-primary);
	font-size: 1.2rem;
	line-height: inherit;
}

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