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

/* CSS VARIABLES */
:root {
	--header-height: 5rem;

	/* Colors */
	--primary-color: #0a0a0a;
	--accent-color: #3d52f3;
	--accent-hover-color: #3144d1;
	--text-color: #ffffff;
	--text-color-secondary: #888888;
	--border-color: #2a2a2a;
	--container-color: #1a1a1a;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Poppins', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	--font-medium: 500;
	--font-semi-bold: 600;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--primary-color);
	color: var(--text-color);
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	font-family: var(--title-font);
	font-weight: var(--font-semi-bold);
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

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

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

/* REUSABLE CSS CLASSES */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

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

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-semi-bold);
	color: var(--text-color);
}

.header__logo-img {
	width: 32px;
	height: 32px;
}

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

.header__nav-link {
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

.header__nav-link--button {
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 0.6rem 1.2rem;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--accent-hover-color);
	color: var(--text-color);
}

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

/* MOBILE NAVIGATION */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 70%;
	height: 100vh;
	background-color: #111;
	z-index: 101;
	padding: 4rem 2rem 2rem;
	display: flex;
	flex-direction: column;
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav--active {
	right: 0;
}

.mobile-nav__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

.mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 2rem;
}

.mobile-nav__link {
	color: var(--text-color);
	font-size: 1.2rem;
	font-weight: var(--font-medium);
	font-family: var(--title-font);
}

.mobile-nav__link--button {
	text-align: center;
	background-color: var(--accent-color);
	padding: 1rem;
	border-radius: 5px;
}

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

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-semi-bold);
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer__logo-img {
	width: 32px;
}

.footer__tagline,
.footer__eu-notice {
	font-size: var(--small-font-size);
	color: var(--text-color-secondary);
	max-width: 250px;
}

.footer__eu-notice {
	margin-top: 1rem;
}

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

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

.footer__link {
	font-size: var(--small-font-size);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__icon {
	width: 16px;
	height: 16px;
}

.footer__address {
	font-size: var(--small-font-size);
	color: var(--text-color-secondary);
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__bottom {
	padding: 1.5rem 0;
	text-align: center;
	border-top: 1px solid var(--border-color);
}

.footer__bottom p {
	font-size: var(--small-font-size);
	color: var(--text-color-secondary);
}

/* BREAKPOINTS */
@media screen and (max-width: 768px) {
	.header__nav {
		display: none;
	}
	.header__burger-btn {
		display: block;
	}
}

@media screen and (min-width: 1150px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

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

.hero__content {
	max-width: 750px;
	margin: 0 auto;
}

.hero__title {
	font-size: var(--h1-font-size);
	font-weight: var(--font-semi-bold);
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color-secondary);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 1rem 2.5rem;
	border-radius: 5px;
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	font-family: var(--title-font);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero__cta-button:hover {
	background-color: var(--accent-hover-color);
	color: var(--text-color);
	transform: translateY(-3px);
}

/* BREAKPOINTS for HERO */
@media screen and (max-width: 768px) {
	:root {
		--h1-font-size: 2rem;
	}
	.hero__description {
		font-size: 1rem;
	}
}

@media screen and (min-width: 768px) {
	:root {
		--h1-font-size: 3.5rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding: 6rem 0 2rem;
}

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

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-secondary);
	max-width: 600px;
	margin: 0 auto;
}

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

.course-card {
	background-color: var(--primary-color);
	border: 1px solid var(--border-color);
	padding: 2.5rem 2rem;
	border-radius: 8px;
	transition: transform 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
}

.course-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
}

.course-card__icon-wrapper {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(61, 82, 243, 0.1);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.course-card__icon {
	width: 28px;
	height: 28px;
	color: var(--accent-color);
}

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

.course-card__description {
	color: var(--text-color-secondary);
	margin-bottom: 2rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.course-card__link {
	color: var(--text-color);
	font-weight: var(--font-medium);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.course-card__link-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.course-card__link:hover .course-card__link-icon {
	transform: translateX(4px);
}

/* BREAKPOINTS for SECTION */
@media screen and (max-width: 768px) {
	.section {
		padding: 4rem 0 1rem;
	}
	:root {
		--h2-font-size: 1.75rem;
	}
}

/* ==================== BENEFITS ==================== */
.benefits__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media screen and (min-width: 992px) {
	.benefits__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 5rem;
	}
}

.benefits__image-wrapper {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.benefits__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.benefits__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.benefit-item__icon-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color);
	border: 1px solid var(--border-color);
	border-radius: 50%;
}

.benefit-item__icon {
	width: 24px;
	height: 24px;
	color: var(--accent-color);
}

.benefit-item__title {
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.benefit-item__description {
	color: var(--text-color-secondary);
}

/* ==================== FORMAT ==================== */
.format__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	margin-top: 4rem;
}

@media screen and (min-width: 992px) {
	.format__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 5rem;
	}
}

.format__image-wrapper {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.format__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ACCORDION */
.accordion__item {
	border-bottom: 1px solid var(--border-color);
	padding: 1.5rem 0;
}

.accordion__item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion__header {
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 1rem;
}

.accordion__icon {
	color: var(--accent-color);
	width: 24px;
	height: 24px;
}

.accordion__title {
	font-size: 1.25rem;
	font-weight: var(--font-medium);
}

.accordion__toggle {
	margin-left: auto;
	transition: transform 0.4s;
}

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

.accordion__description {
	padding-top: 1rem;
	padding-left: 3.5rem; /* Aligns with title */
	color: var(--text-color-secondary);
}

/* Accordion Active State */
.accordion__item.accordion--active .accordion__content {
	max-height: 200px; /* Adjust if content is larger */
}

.accordion__item.accordion--active .accordion__toggle {
	transform: rotate(180deg);
}

/* ==================== ABOUT / TESTIMONIAL ==================== */
.testimonial {
	max-width: 800px;
	margin: 4rem auto 0 auto;
	background-color: var(--primary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 3rem;
	position: relative;
	text-align: center;
}

.testimonial__avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 3px solid var(--accent-color);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

.testimonial__content {
	padding-top: 3rem; /* Space for avatar */
}

.testimonial__quote-icon {
	color: var(--accent-color);
	width: 40px;
	height: 40px;
	opacity: 0.5;
	margin-bottom: 1rem;
}

.testimonial__text {
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.6;
	margin-bottom: 2rem;
	color: var(--text-color);
}

.testimonial__author {
	display: block;
	font-size: 1.125rem;
	font-style: normal;
	font-weight: var(--font-semi-bold);
	font-family: var(--title-font);
}

.testimonial__role {
	font-size: var(--small-font-size);
	color: var(--text-color-secondary);
}

/* BREAKPOINTS for TESTIMONIAL */
@media screen and (max-width: 576px) {
	.testimonial {
		padding: 2rem;
		padding-top: 4rem;
	}
	.testimonial__text {
		font-size: 1.1rem;
	}
}

/* ==================== CONTACT ==================== */
.contact__container {
	max-width: 700px;
	margin: 4rem auto 0 auto;
	background-color: var(--primary-color);
	border: 1px solid var(--border-color);
	padding: 3rem;
	border-radius: 8px;
	position: relative;
}

.contact__form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media screen and (min-width: 576px) {
	.contact__form-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.contact__form-group--full {
		grid-column: 1 / -1;
	}
}

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: #0a0a0a;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--text-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-input:focus {
	border-color: var(--accent-color);
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color-secondary);
	pointer-events: none;
	transition: all 0.3s ease;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	background-color: var(--primary-color);
	padding: 0 0.25rem;
	color: var(--accent-color);
}

.contact__form-group--checkbox {
	margin-top: 1rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-secondary);
}

.contact__form-checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	margin-top: 2rem;
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 1rem;
	border: none;
	border-radius: 5px;
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	font-family: var(--title-font);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.contact__form-button:hover {
	background-color: var(--accent-hover-color);
}

.contact__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--primary-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact__success-message.is-visible {
	opacity: 1;
	visibility: visible;
}

.contact__success-icon {
	width: 50px;
	height: 50px;
	color: #28a745; /* Success Green */
	margin-bottom: 1rem;
}

.contact__success-title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* BREAKPOINTS for CONTACT */
@media screen and (max-width: 576px) {
	.contact__container {
		padding: 2rem;
	}
}

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: rgba(10, 10, 10, 0.9);
	backdrop-filter: blur(5px);
	z-index: 200;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border-color);
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0; /* Animate to show */
}

.cookie-popup__content {
	max-width: 1120px;
	margin: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

@media screen and (min-width: 1150px) {
	.cookie-popup__content {
		margin: 0 auto;
	}
}

.cookie-popup__text {
	color: var(--text-color-secondary);
	font-size: var(--small-font-size);
}

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 0.6rem 1.2rem;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: var(--accent-hover-color);
}

/* BREAKPOINTS for COOKIE POP-UP */
@media screen and (max-width: 576px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-popup__button {
		width: 100%;
	}
}

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

.pages .container {
	max-width: 800px; /* Optimal width for reading */
}

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

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

.pages p {
	font-size: var(--normal-font-size);
	color: var(--text-color-secondary);
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
	color: var(--text-color-secondary);
}

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.3s;
}

.pages a:hover {
	color: var(--accent-hover-color);
}

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