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

/* --- CSS Variables --- */
:root {
	--bg-color: #0d1117;
	--text-color: #e6edf3;
	--accent-color: #00f5d4;
	--secondary-text-color: #8b949e;
	--border-color: #30363d;

	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
}

/* --- 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-secondary);
	line-height: 1.6;
}

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

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

ul {
	list-style: none;
}

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

h1,
h2,
h3 {
	font-family: var(--font-primary);
	font-weight: 700;
	color: var(--text-color);
}

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

/* --- Header --- */
.header {
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
}

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

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

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

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	position: relative;
	padding-bottom: 0.25rem;
}

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

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

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

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

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

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

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

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

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

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

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

.footer__address {
	color: var(--secondary-text-color);
	font-style: normal;
	line-height: 1.5;
}

/* --- Responsive (Mobile-First) --- */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		left: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--bg-color);
		padding: 6rem 2rem 2rem;
		transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		z-index: 101;
		border-right: 1px solid var(--border-color);
	}

	.header__nav.is-active {
		left: 0;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		font-size: 1.25rem;
	}

	.header__burger {
		display: block;
		z-index: 102;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--brand {
		align-items: center;
	}
}

/* --- Button --- */
.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: 5px;
	text-align: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.btn--primary:hover {
	background-color: #93f5e8;
	color: var(--bg-color);
	transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
	position: relative;
	height: 90vh;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	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;
}

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

.hero__title {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero__cursor {
	color: var(--accent-color);
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	from,
	to {
		color: transparent;
	}
	50% {
		color: var(--accent-color);
	}
}

.hero__description {
	font-size: 1.2rem;
	color: var(--secondary-text-color);
	margin-bottom: 2rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
	.hero {
		height: 80vh;
		padding-top: 4rem; /* Add padding for header height */
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__description {
		font-size: 1rem;
	}
}

/* --- Section General Styles --- */
.section-title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	position: relative;
	padding-bottom: 0.5rem;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 4px;
	background-color: var(--accent-color);
}

.section-description {
	font-size: 1.1rem;
	color: var(--secondary-text-color);
	line-height: 1.7;
	margin-bottom: 2rem;
}

/* --- About Section --- */
.about {
	padding: 6rem 0;
	background-color: #010409;
}

.about__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
}

.about__image-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

.about__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.about__image-wrapper:hover .about__image {
	transform: scale(1.05);
}

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

.about__feature-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.05rem;
}

.about__feature-item i {
	color: var(--accent-color);
	flex-shrink: 0; /* Prevents icon from shrinking */
}

/* --- Responsive for About --- */
@media (max-width: 992px) {
	.about__container {
		grid-template-columns: 1fr;
	}

	.about__image-wrapper {
		max-width: 500px;
		margin: 0 auto 2rem;
	}
}

@media (max-width: 768px) {
	.about {
		padding: 4rem 0;
	}

	.section-title {
		font-size: 2rem;
	}
}

/* --- Courses Section --- */
.courses {
	padding: 6rem 0;
}

.courses__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.courses__header .section-title::after {
	left: 50%;
	transform: translateX(-50%);
}

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

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

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

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

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

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

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

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

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

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

/* --- Responsive for Courses --- */
@media (max-width: 992px) {
	.courses__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.courses {
		padding: 4rem 0;
	}

	.courses__grid {
		grid-template-columns: 1fr;
	}
}

/* --- Benefits Section --- */
.benefits {
	padding: 6rem 0;
	background-color: #010409;
}

.benefits__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.benefits__header .section-title::after {
	left: 50%;
	transform: translateX(-50%);
}

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

.benefit-item {
	background-color: var(--bg-color);
	padding: 2.5rem 2rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

.benefit-item:hover {
	border-color: var(--accent-color);
}

.benefit-item__icon {
	margin-bottom: 1.5rem;
}

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

.benefit-item__title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

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

/* --- Responsive for Benefits --- */
@media (max-width: 768px) {
	.benefits {
		padding: 4rem 0;
	}

	.benefits__grid {
		grid-template-columns: 1fr;
	}
}

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

.reviews__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.reviews__header .section-title::after {
	left: 50%;
	transform: translateX(-50%);
}

.reviews-slider {
	padding-bottom: 3rem; /* Space for pagination */
}

.review-card {
	background-color: #010409;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.review-card__text {
	font-size: 1.05rem;
	color: var(--secondary-text-color);
	line-height: 1.7;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

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

.review-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.review-card__name {
	font-family: var(--font-primary);
	font-weight: 600;
	color: var(--text-color);
}

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

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

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

/* --- Contact Section --- */
.contact {
	padding: 6rem 0;
	background-color: #010409;
}

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

.contact__details {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

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

.contact__detail-item i {
	color: var(--accent-color);
}

.contact__detail-item a {
	color: var(--secondary-text-color);
	font-size: 1.1rem;
}
.contact__detail-item a:hover {
	color: var(--accent-color);
}

.contact__form-wrapper {
	background-color: var(--bg-color);
	padding: 2.5rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

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

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--secondary-text-color);
}

.form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: #010409;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.form-checkbox {
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.form-checkbox-label {
	font-size: 0.9rem;
	color: var(--secondary-text-color);
}
.form-checkbox-label a {
	text-decoration: underline;
}

.contact-form__button {
	width: 100%;
}

.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--accent-color);
	border-radius: 8px;
	background-color: rgba(0, 245, 212, 0.05);
}

.success-message i {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.success-message p {
	font-size: 1.1rem;
}

/* --- Responsive for Contact --- */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.contact {
		padding: 4rem 0;
	}
}

/* --- Cookie Popup --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: #010409;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border-color);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0;
}

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

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

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

.btn--small {
	padding: 0.6rem 1.5rem;
	flex-shrink: 0;
}

/* Responsive for Cookie Popup */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Policy Pages Styles --- */
.pages {
	padding: 4rem 0;
}

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

.pages h1 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 1rem;
}

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

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

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

.pages li {
	margin-bottom: 0.75rem;
	color: var(--secondary-text-color);
}

.pages a {
	text-decoration: underline;
}

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

/* Responsive for Policy Pages */
@media (max-width: 768px) {
	.pages {
		padding: 3rem 0;
	}

	.pages h1 {
		font-size: 2.2rem;
	}

	.pages h2 {
		font-size: 1.5rem;
	}
}
