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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--bg-color: #101425;
	--text-color: #f0f0f0;
	--accent-color: #00f5a0;
	--accent-hover-color: #00dda8;
	--secondary-text-color: #8a94a7;
	--surface-color: #1a1f36;
	--border-color: #2e345b;

	/* Typography */
	--header-font: 'Plus Jakarta Sans', sans-serif;
	--body-font: 'Inter', sans-serif;

	--h1-font-size: 2.75rem;
	--h2-font-size: 2rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Spacing */
	--header-height: 5rem;
	--container-width: 1200px;
	--container-padding: 1.5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.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%;
	z-index: 100;
	background-color: rgba(16, 20, 37, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s;
}

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--header-font);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--text-color);
}

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

.header__nav {
	display: none;
}

.header__toggle {
	display: block;
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color);
}

.header__toggle .lucide {
	width: 28px;
	height: 28px;
}

/*=============== MOBILE MENU ===============*/
.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	background-color: var(--bg-color);
	z-index: 101;
	padding: var(--container-padding);
	display: flex;
	flex-direction: column;
	transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-active {
	right: 0;
}

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

.mobile-menu__close {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}
.mobile-menu__close .lucide {
	width: 32px;
	height: 32px;
}

.mobile-menu__nav {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

.mobile-menu__link {
	font-family: var(--header-font);
	font-size: var(--h2-font-size);
	font-weight: 700;
	color: var(--text-color);
	transition: color 0.3s;
}

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

.mobile-menu__contact-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1rem;
	background-color: var(--accent-color);
	color: var(--bg-color);
	font-weight: 700;
	border-radius: 8px;
	transition: background-color 0.3s;
}

.mobile-menu__contact-btn:hover {
	background-color: var(--accent-hover-color);
}

/*=============== HERO ===============*/
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: var(--header-height);
	padding-bottom: 4rem;
	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: 800px;
	margin: 0 auto;
}

/* Animation for text appearance */
.hero__title,
.hero__description,
.hero__cta-button {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.8s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__description {
	animation-delay: 0.2s;
}

.hero__cta-button {
	animation-delay: 0.4s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: var(--h1-font-size);
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

.hero__description {
	font-size: var(--h3-font-size);
	color: var(--secondary-text-color);
	line-height: 1.5;
	margin-bottom: 2.5rem;
	font-weight: 400;
	font-family: var(--body-font);
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 1rem 2.5rem;
	border-radius: 8px;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: var(--normal-font-size);
	transition: transform 0.3s, background-color 0.3s;
}

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

/*=============== SHARED SECTION STYLES ===============*/
.section {
	padding: 6rem 0;
	overflow-x: hidden; /* To prevent horizontal scrollbar from AOS animations */
}

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

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

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

/*=============== COURSES ===============*/
.courses__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.courses__card {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.courses__card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-color);
	box-shadow: 0 10px 30px rgba(0, 245, 160, 0.1);
}

.courses__card-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.courses__card-icon {
	color: var(--accent-color);
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.courses__card-title {
	font-size: var(--h3-font-size);
}

.courses__card-body {
	position: relative;
	min-height: 100px; /* Adjust as needed */
}

.courses__card-description,
.courses__card-tech {
	color: var(--secondary-text-color);
	transition: opacity 0.3s ease-in-out;
}

.courses__card-tech {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none; /* Make it non-interactive when hidden */
	list-style-type: none;
	padding: 0;
}

.courses__card-tech li {
	margin-bottom: 0.5rem;
	padding-left: 1.25rem;
	position: relative;
}

.courses__card-tech li::before {
	content: '›';
	position: absolute;
	left: 0;
	color: var(--accent-color);
	font-weight: 700;
}

.courses__card:hover .courses__card-description {
	opacity: 0;
}

.courses__card:hover .courses__card-tech {
	opacity: 1;
}

/*=============== PROCESS ===============*/
.process__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

/* The vertical line for mobile */
.process__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 24px;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background-color: var(--border-color);
}

.process__item {
	position: relative;
	margin-bottom: 3rem;
	padding-left: 4rem;
}

.process__item:last-child {
	margin-bottom: 0;
}

.process__icon-wrapper {
	position: absolute;
	left: 24px;
	top: 0;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	background-color: var(--surface-color);
	border: 2px solid var(--accent-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

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

.process__content {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
}

.process__step {
	display: inline-block;
	font-size: var(--small-font-size);
	color: var(--accent-color);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.process__item-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.process__item-description {
	color: var(--secondary-text-color);
	line-height: 1.7;
}

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--header-font);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer__logo-icon {
	width: 32px;
	height: 32px;
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
	font-weight: 700;
}

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

.footer__link {
	color: var(--secondary-text-color);
	transition: color 0.3s;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__contact-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--secondary-text-color);
}

.footer__address {
	align-items: flex-start !important;
}

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

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

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.header__nav {
		display: flex;
		align-items: center;
		gap: 2rem;
	}

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

	.header__nav-link {
		color: var(--secondary-text-color);
		font-weight: 500;
		position: relative;
		padding-bottom: 0.5rem;
		transition: color 0.3s;
	}

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

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

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

	.header__nav-contact-btn {
		padding: 0.6rem 1.2rem;
		background-color: var(--accent-color);
		color: var(--bg-color);
		font-weight: 700;
		border-radius: 8px;
		transition: background-color 0.3s;
	}

	.header__nav-contact-btn:hover {
		background-color: var(--accent-hover-color);
	}

	.header__toggle {
		display: none;
	}

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

	/* Process Timeline for Desktop */
	.process__timeline::before {
		left: 50%;
	}

	.process__item {
		width: 50%;
		margin-bottom: 4rem;
		padding-left: 0; /* Reset padding */
	}

	.process__item:nth-child(odd) {
		padding-right: 4rem;
		left: 0;
	}

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

	.process__icon-wrapper {
		left: 50%;
	}

	/* Connecting line from dot to card */
	.process__item::after {
		content: '';
		position: absolute;
		top: 24px;
		width: 4rem;
		height: 2px;
		background-color: var(--border-color);
	}

	.process__item:nth-child(odd)::after {
		right: 0;
	}

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

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

	.cookie-popup {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.cookie-popup__button {
		width: 100%;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	:root {
		--h1-font-size: 3.5rem;
		--h2-font-size: 2.25rem;
		--h3-font-size: 1.5rem;
		--normal-font-size: 1.05rem;
	}

	.reviews__swiper {
		padding-left: 4rem;
		padding-right: 4rem;
	}

	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}

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

/*=============== MENTORS ===============*/
.mentors__swiper {
	padding-bottom: 4rem; /* Space for pagination */
}

.mentors__card {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	text-align: center;
	height: 100%; /* Ensure all cards have same height in a row */
	display: flex;
	flex-direction: column;
}

.mentors__card-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.5rem auto;
	border: 3px solid var(--border-color);
}

.mentors__card-name {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.mentors__card-title {
	color: var(--accent-color);
	font-size: var(--small-font-size);
	font-weight: 500;
	margin-bottom: 1rem;
	flex-grow: 1; /* Pushes the bio down if titles have different lengths */
}

.mentors__card-bio {
	font-size: var(--normal-font-size);
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: var(--secondary-text-color);
}

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

.swiper-button-prev,
.swiper-button-next {
	color: var(--accent-color);
	transition: transform 0.3s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
	transform: scale(1.1);
}

/*=============== REVIEWS ===============*/
.reviews__swiper {
	padding-bottom: 4rem; /* Space for pagination */
}

.reviews__card {
	position: relative;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 3rem 2rem 2rem 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.reviews__card-icon {
	position: absolute;
	top: 1.5rem;
	left: 2rem;
	width: 48px;
	height: 48px;
	color: var(--border-color);
	z-index: 1;
}

.reviews__card-rating {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 2;
}

.reviews__card-rating .lucide-star {
	width: 20px;
	height: 20px;
	fill: var(--accent-color);
	color: var(--accent-color);
}

.reviews__card-text {
	color: var(--secondary-text-color);
	line-height: 1.8;
	margin-bottom: 2rem;
	font-size: var(--normal-font-size);
	flex-grow: 1;
	position: relative;
	z-index: 2;
}

.reviews__card-author {
	border-top: 1px solid var(--border-color);
	padding-top: 1.5rem;
	position: relative;
	z-index: 2;
}

.reviews__card-name {
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

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

/* Custom pagination for reviews */
.reviews__pagination.swiper-pagination-bullets {
	bottom: 1rem;
}

/*=============== CONTACT ===============*/
.contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__info-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

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

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

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact__info-list a {
	transition: color 0.3s;
}

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

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

/* Form Styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	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(--secondary-text-color);
	pointer-events: none;
	transition: top 0.3s, font-size 0.3s, color 0.3s;
}

/* Floating Label Effect */
.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);
	color: var(--accent-color);
	background-color: var(--bg-color);
	padding: 0 0.25rem;
}

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

.contact__form-checkbox input[type='checkbox'] {
	accent-color: var(--accent-color);
	width: 18px;
	height: 18px;
	margin-top: 3px;
	flex-shrink: 0;
}

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

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

/* Button */
.contact__form-button {
	width: 100%;
	padding: 1rem;
	background-color: var(--accent-color);
	color: var(--bg-color);
	border: none;
	border-radius: 8px;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: var(--normal-font-size);
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
}

.contact__form-button:hover {
	background-color: var(--accent-hover-color);
	transform: translateY(-2px);
}
.contact__form-button:disabled {
	background-color: var(--secondary-text-color);
	cursor: not-allowed;
	transform: none;
}

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

.contact__success-message.is-visible {
	display: block; /* Shown via JS */
}

.contact__success-message .lucide {
	width: 60px;
	height: 60px;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.contact__success-message h3 {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.contact__success-message p {
	color: var(--secondary-text-color);
}

@media screen and (min-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
		align-items: center;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	padding: 1.5rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	z-index: 200;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	transition: opacity 0.5s, transform 0.5s;
}

.cookie-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

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

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--bg-color);
	border: none;
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s;
	white-space: nowrap;
}

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

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

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

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

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

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

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

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	transition: color 0.3s;
}

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

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