/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@700&display=swap');

/* CSS VARIABLES */
:root {
	--bg-color: #0d1117;
	--text-color: #c9d1d9;
	--heading-color: #ffffff;
	--primary-color: #a259ff;
	--primary-hover-color: #d0b3ff;
	--border-color: #30363d;

	--font-body: 'Inter', sans-serif;
	--font-heading: 'Plus Jakarta Sans', sans-serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--font-heading);
	color: var(--heading-color);
	line-height: 1.2;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

/* REUSABLE COMPONENTS */
.container {
	position: relative;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--primary-color);
	color: var(--heading-color);
	font-family: var(--font-heading);
	font-weight: 700;
	border-radius: 8px;
	text-align: center;
	border: 2px solid var(--primary-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
	background-color: transparent;
	color: var(--primary-hover-color);
	border-color: var(--primary-hover-color);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo__text {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--heading-color);
}

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

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

.header__nav {
	display: none; /* Hidden on mobile */
}

.header__nav-list {
	display: flex;
	gap: 2.5rem;
}

.header__nav-link {
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.header__nav-link:hover {
	color: var(--heading-color);
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header__cta-button {
	display: none; /* Hidden on mobile */
}

.header__burger-button {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.header__burger-button:hover {
	color: var(--heading-color);
}

/* MOBILE MENU */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.mobile-menu--active {
	visibility: visible;
	opacity: 1;
}

.mobile-menu__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
}

.mobile-menu__content {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background-color: var(--bg-color);
	border-left: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu--active .mobile-menu__content {
	transform: translateX(0);
}

.mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
	height: var(--header-height);
}

.mobile-menu__close {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.mobile-menu__close:hover {
	color: var(--heading-color);
}

.mobile-menu__nav {
	flex: 1;
	padding: 2rem 1.5rem;
	overflow-y: auto;
}

.mobile-menu__nav-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mobile-menu__nav-item {
	border-bottom: 1px solid var(--border-color);
}

.mobile-menu__nav-item:last-child {
	border-bottom: none;
}

.mobile-menu__nav-link {
	display: block;
	padding: 1.25rem 0;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-color);
	transition: color 0.3s ease, padding-left 0.3s ease;
	position: relative;
}

.mobile-menu__nav-link:hover,
.mobile-menu__nav-link:focus {
	color: var(--primary-color);
	padding-left: 1rem;
}

.mobile-menu__nav-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 0;
	background-color: var(--primary-color);
	transition: height 0.3s ease;
}

.mobile-menu__nav-link:hover::before,
.mobile-menu__nav-link:focus::before {
	height: 60%;
}

.mobile-menu__footer {
	padding: 1.5rem;
	border-top: 1px solid var(--border-color);
}

.mobile-menu__cta-button {
	width: 100%;
	text-align: center;
	font-size: 1.1rem;
	padding: 1rem 2rem;
}

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

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

.footer__tagline {
	margin-top: 1rem;
	max-width: 280px;
}

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

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

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

.footer__list-item--address {
	color: #8b949e;
	font-style: normal;
}

.footer__bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	font-size: 0.9rem;
	color: #8b949e;
}

/* RESPONSIVE STYLES */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.header__nav {
		display: block;
	}
	.header__cta-button {
		display: inline-block;
	}
	.header__burger-button {
		display: none;
	}
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* HERO SECTION */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: var(--header-height);
	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;
}

.hero__subtitle {
	font-size: 1.125rem;
	max-width: 650px;
	margin-bottom: 2rem;
	color: #8b949e;
}

.hero__cta-button {
	padding: 16px 40px;
	font-size: 1.1rem;
}

/* RESPONSIVE STYLES for HERO */
@media (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}
	.hero__subtitle {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.hero {
		text-align: left;
	}
	.hero__container {
		align-items: flex-start;
	}
}

/* ANALYSIS SECTION */
.analysis {
	padding: 6rem 0;
	background-color: #010409;
}

.analysis__header {
	text-align: center;
	margin-bottom: 4rem;
}

.analysis__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.analysis__subtitle {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
	color: #8b949e;
}

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

.analysis__card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(162, 89, 255, 0.1);
}

.analysis__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: rgba(162, 89, 255, 0.1);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.analysis__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--primary-hover-color);
	transition: color 0.3s ease;
}

.analysis__card:hover .analysis__card-icon i {
	color: var(--primary-color);
}

.analysis__card-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.analysis__card-text {
	color: #8b949e;
}

/* RESPONSIVE STYLES for ANALYSIS */
@media (min-width: 768px) {
	.analysis__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.analysis__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.analysis__title {
		font-size: 3rem;
	}
}

/* STRATEGIES SECTION */
.strategies {
	padding: 6rem 0;
}

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

.strategies__image-wrapper {
	max-width: 450px;
	margin: 0 auto;
}

.strategies__image {
	border-radius: 12px;
	width: 100%;
}

.strategies__header {
	margin-bottom: 2.5rem;
}

.strategies__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.strategies__subtitle {
	font-size: 1.125rem;
	color: #8b949e;
}

/* ACCORDION STYLES */
.accordion-item {
	border-bottom: 1px solid var(--border-color);
}
.accordion-item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion-item__header {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 0;
	cursor: pointer;
	text-align: left;
	color: var(--heading-color);
}

.accordion-item__header i {
	color: var(--primary-color);
	flex-shrink: 0;
}

.accordion-item__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	color: var(--heading-color);
	flex-grow: 1;
}

.accordion-item__chevron {
	transition: transform 0.3s ease;
}

.accordion-item__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.accordion-item__content p {
	padding-bottom: 0;
	color: #8b949e;
	max-width: 90%;
}

/* ACCORDION ACTIVE STATE */
.accordion-item.accordion-item--active .accordion-item__chevron {
	transform: rotate(180deg);
}

.accordion-item.accordion-item--active .accordion-item__content {
	max-height: 200px; /* Adjust if content is taller */
	padding-bottom: 1.5rem;
}

/* RESPONSIVE STYLES for STRATEGIES */
@media (min-width: 1024px) {
	.strategies__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
	.strategies__title {
		font-size: 3rem;
	}
}

/* CASES SECTION */
.cases {
	padding: 6rem 0;
	background-color: #010409;
}

.cases__header {
	text-align: center;
	margin-bottom: 4rem;
}

.cases__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.cases__subtitle {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
	color: #8b949e;
}

/* SWIPER & CARD STYLES */
.cases__slider {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1rem 4rem; /* Padding for navigation buttons and pagination */
}

.case-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.case-card__image {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.5rem;
	border: 2px solid var(--border-color);
}

.case-card__quote {
	font-size: 1.1rem;
	line-height: 1.7;
	margin: 0 0 1.5rem;
	flex-grow: 1;
	font-style: italic;
	color: var(--text-color);
	border-left: 3px solid var(--primary-color);
	padding-left: 1rem;
}

.case-card__author {
	margin-top: auto;
}

.case-card__name {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--heading-color);
	margin-bottom: 0.5rem;
}

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

.case-card__tag {
	background-color: rgba(162, 89, 255, 0.1);
	color: var(--primary-hover-color);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

/* SWIPER CUSTOMIZATION */
.swiper-pagination-bullet {
	background-color: var(--border-color);
	opacity: 0.7;
}

.swiper-pagination-bullet-active {
	background-color: var(--primary-color);
	opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	transition: color 0.3s ease;
	width: 50px;
	height: 50px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	color: var(--primary-hover-color);
}

@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}
}

/* RESOURCES SECTION */
.resources {
	padding: 6rem 0;
}

.resources__header {
	text-align: center;
	margin-bottom: 4rem;
}

.resources__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.resources__subtitle {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
	color: #8b949e;
}

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

/* ARTICLE CARD STYLES */
.article-card {
	background-color: #010409;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-card__image-link {
	display: block;
}

.article-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-bottom: 1px solid var(--border-color);
}

.article-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.article-card__category {
	display: inline-block;
	margin-bottom: 0.75rem;
	color: var(--primary-color);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
}
.article-card__category:hover {
	text-decoration: underline;
}

.article-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}
.article-card__title a:hover {
	color: var(--primary-color);
}

.article-card__excerpt {
	color: #8b949e;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.article-card__read-more {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--heading-color);
	font-weight: 700;
	margin-top: auto;
}

.article-card__read-more:hover {
	color: var(--primary-color);
}

/* RESPONSIVE STYLES for RESOURCES */
@media (min-width: 768px) {
	.resources__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.resources__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.resources__title {
		font-size: 3rem;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 6rem 0;
}

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

.contact__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.contact__subtitle {
	font-size: 1.125rem;
	color: #8b949e;
	max-width: 500px;
}

.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-weight: 500;
}

.form-group__input {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 14px;
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: #8b949e;
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 4px;
	flex-shrink: 0;
}

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

.contact__form-button {
	padding: 16px;
	font-size: 1.1rem;
	cursor: pointer;
}

.contact__form-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.form-success-message {
	display: none; /* Hidden by default */
	background-color: #010409;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 3rem;
	text-align: center;
}

.form-success-message i {
	color: #3fb950; /* Green success color */
	width: 60px;
	height: 60px;
	margin-bottom: 1rem;
}

.form-success-message h3 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

/* RESPONSIVE STYLES for CONTACT */
@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
		align-items: center;
	}
	.contact__title {
		font-size: 3rem;
	}
}

/* --- STAGE 5: ADDITIONAL ELEMENTS --- */

/* 1. POLICY PAGES STYLES */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 6rem 0;
}

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

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: #8b949e;
}

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

.pages li {
	margin-bottom: 0.75rem;
	color: #8b949e;
}

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

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

/* 2. COOKIE POP-UP STYLES */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 450px;
	background-color: #161b22;
	border: 1px solid var(--border-color);
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
	color: #8b949e;
	font-size: 0.9rem;
}

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

.cookie-popup__button {
	padding: 10px 20px;
	width: 100%;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		align-items: center;
		max-width: 100%;
		left: 50%;
		transform: translate(-50%, 200%);
		width: auto;
	}
	.cookie-popup--active {
		transform: translateX(-50%);
	}
	.cookie-popup__button {
		width: auto;
	}
}
