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

/* --- CSS Variables --- */
:root {
	--bg-color: #111317;
	--bg-light: #1c1f26;
	--text-color: #eaeaea;
	--text-muted: #888;
	--accent-color: #33ffc2;
	--accent-hover: #21e6ad;
	--border-color: #2a2e37;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

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

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

ul {
	list-style: none;
}

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

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

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

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

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

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

.logo__img {
	width: 32px;
	height: 32px;
}

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

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

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

.nav__link:hover::after {
	width: 100%;
}

.nav__link--cta {
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	transition: background-color 0.3s ease;
}

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

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

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

/* --- Footer --- */
.footer {
	padding: 4rem 0 0;
	background-color: var(--bg-light);
	border-top: 1px solid var(--border-color);
}

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

.footer__column--brand .logo {
	margin-bottom: 1rem;
}

.footer__description {
	color: var(--text-muted);
	max-width: 300px;
}

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

.footer__list li {
	margin-bottom: 0.5rem;
}

.footer__link {
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

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

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

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

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--bg-color);
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		display: flex;
		justify-content: center;
		padding-top: 3rem;
	}

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

	.nav__list {
		flex-direction: column;
		gap: 2.5rem;
		font-size: 1.5rem;
	}

	.burger {
		display: block;
	}

	.burger .lucide-x {
		display: none;
	}

	.burger.burger--open .lucide-menu {
		display: none;
	}

	.burger.burger--open .lucide-x {
		display: block;
	}
}

/* --- Buttons --- */
.button {
	display: inline-block;
	padding: 0.8rem 2rem;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.button--primary {
	background-color: var(--accent-color);
	color: var(--bg-color);
}

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

.button--secondary {
	background-color: transparent;
	color: var(--accent-color);
	border-color: var(--accent-color);
}

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

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

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

.hero__title {
	font-size: 2rem; /* 56px */
	margin-bottom: 1.5rem;
}

/* --- Title Animation Styles --- */
.hero__title [data-word] {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__title [data-word].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--text-muted);
	max-width: 500px;
	margin-bottom: 2.5rem;
}

.hero__actions {
	display: flex;
	gap: 1rem;
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	max-width: 450px;
	width: 100%;
	border-radius: 20px;
}

/* --- Hero Responsiveness --- */
@media (max-width: 992px) {
	.hero__title {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: auto;
		padding: calc(var(--header-height) + 4rem) 0 4rem;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hero__image-wrapper {
		order: -1; /* Image will be on top on mobile */
		margin-bottom: 2rem;
	}

	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}

	.hero__actions {
		justify-content: center;
	}
}

/* --- Section Header --- */
.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

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

.section-header__subtitle {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto;
}

/* --- Courses Section --- */
.courses {
	padding: 6rem 0;
	background-color: var(--bg-light);
}

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

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

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

.course-card__icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(51, 255, 194, 0.1);
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.course-card__icon .lucide {
	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-muted);
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.course-card__stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.course-card__stack li {
	background-color: var(--bg-light);
	color: var(--text-muted);
	font-size: 0.875rem;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	border: 1px solid var(--border-color);
}

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

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

.course-card__link:hover .lucide {
	transform: translateX(5px);
}

/* --- Courses Responsiveness --- */
@media (max-width: 768px) {
	.courses {
		padding: 4rem 0;
	}
	.section-header__title {
		font-size: 2rem;
	}
}

/* --- Process Section --- */
.process {
	padding: 6rem 0;
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The central line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
}

.process__item {
	padding: 1rem 3rem;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process__item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	right: -10px;
	background-color: var(--bg-color);
	border: 3px solid var(--accent-color);
	top: 25px;
	border-radius: 50%;
	z-index: 1;
}

/* Positioning items */
.process__item:nth-child(odd) {
	left: 0;
	text-align: right;
}

.process__item:nth-child(even) {
	left: 50%;
}

/* Positioning circle for even items */
.process__item:nth-child(even)::after {
	left: -10px;
}

.process__icon-wrapper {
	width: 50px;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	margin-bottom: 1rem;
}

.process__icon-wrapper .lucide {
	width: 24px;
	height: 24px;
	color: var(--accent-color);
}

.process__title {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.process__description {
	color: var(--text-muted);
}

/* --- Process Responsiveness --- */
@media (max-width: 768px) {
	.process {
		padding: 4rem 0;
	}

	.process__timeline::after {
		left: 25px;
	}

	.process__item {
		width: 100%;
		padding-left: 60px;
		padding-right: 15px;
		text-align: left !important;
	}

	.process__item:nth-child(even) {
		left: 0%;
	}

	.process__item::after {
		left: 15px;
	}

	.process__item:nth-child(even)::after {
		left: 15px;
	}
}

/* --- Mentors Section --- */
.mentors {
	padding: 6rem 0;
	background-color: var(--bg-light);
}

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

.mentor-card {
	background-color: var(--bg-color);
	border-radius: 16px;
	overflow: hidden;
	text-align: center;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.mentor-card__image-wrapper {
	overflow: hidden; /* Important for the zoom effect */
}

.mentor-card__image {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.mentor-card__content {
	padding: 1.5rem;
}

.mentor-card__name {
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
}

.mentor-card__role {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.mentor-card__socials {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.mentor-card__socials a {
	color: var(--text-muted);
}

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

.mentor-card__socials .lucide {
	width: 20px;
	height: 20px;
}

/* --- Reviews Section --- */
.reviews {
	padding: 6rem 0;
}

.reviews__slider-wrapper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.reviews__slider {
	padding: 1rem 0 3rem; /* Bottom padding for pagination */
}

.review-card {
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2.5rem;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.review-card__text {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--text-color);
	flex-grow: 1;
	margin-bottom: 2rem;
	position: relative;
	padding-left: 2rem;
}

.review-card__text::before {
	content: '“';
	font-family: var(--font-heading);
	font-size: 4rem;
	color: var(--accent-color);
	position: absolute;
	left: -0.5rem;
	top: -1.5rem;
	opacity: 0.5;
}

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

.review-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--border-color);
}

.review-card__name {
	font-weight: 600;
	margin: 0;
}

.review-card__course {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* --- Swiper Customization --- */
.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color);
	width: 50px !important;
	height: 50px !important;
	background-color: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

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

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.2rem !important;
	font-weight: bold;
}

.swiper-pagination-bullet {
	background-color: var(--text-muted);
	opacity: 0.7;
}

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

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

/* --- Contact Section --- */
.contact {
	padding: 6rem 0;
	background-color: var(--bg-light);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 4rem;
	max-width: 1000px;
	margin: 0 auto;
	background-color: var(--bg-color);
	padding: 3rem;
	border-radius: 16px;
	border: 1px solid var(--border-color);
}

.contact__info-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.contact__info-text {
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.contact__info-list li {
	margin-bottom: 1rem;
}

.contact__info-list a {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--text-color);
	font-weight: 500;
}

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

.contact__info-list .lucide {
	color: var(--accent-color);
}

.contact__form-group {
	margin-bottom: 1.5rem;
}

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

.contact__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(51, 255, 194, 0.2);
}

.contact__checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.contact__checkbox {
	margin-top: 4px;
	accent-color: var(--accent-color);
	width: 16px;
	height: 16px;
}

.contact__checkbox-label {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.contact__checkbox-label a {
	text-decoration: underline;
}

.contact__button {
	width: 100%;
}

.contact__message {
	display: none; /* Hidden by default */
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
	margin-top: 1rem;
}

.contact__message--success {
	background-color: rgba(51, 255, 194, 0.1);
	border: 1px solid var(--accent-color);
}

.contact__message--success h4 {
	color: var(--accent-color);
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.contact__message--error {
	background-color: rgba(255, 82, 82, 0.1);
	border: 1px solid #ff5252;
	color: #ff8a8a;
}

/* --- Contact Responsiveness --- */
@media (max-width: 900px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* --- Cookie Popup --- */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: var(--bg-light);
	padding: 1rem 1.5rem;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.cookie-popup__text a {
	text-decoration: underline;
}

.cookie-popup__button {
	padding: 0.5rem 1.2rem;
	white-space: nowrap;
}

@media (max-width: 500px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}
}

/* --- Policy & Static Pages --- */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 6rem;
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--accent-color);
}

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

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

.pages a {
	text-decoration: underline;
}

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

.pages li {
	color: var(--text-muted);
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

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