/*
---
--- TABLE OF CONTENTS
---
--- 1. Global styles
--- 2. Header styles
--- 3. Footer styles
---
*/

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

:root {
	--background-color: #1a1a2e;
	--text-color: #f0f0f0;
	--primary-color: #be29ec;
	--secondary-color: #4a4a6a;
	--header-height: 80px;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

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

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

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

ul {
	list-style: none;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--text-color);
}

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

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

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

.header__menu-list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header__menu-link {
	font-size: 16px;
	font-weight: 500;
	padding: 5px 0;
	position: relative;
}

.header__menu-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.header__menu-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header__menu-link--button {
	background-color: var(--primary-color);
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__menu-link--button:hover {
	background-color: #a924d3;
	color: #fff;
	transform: translateY(-2px);
}

.header__menu-link--button::after {
	display: none;
}

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

/* Mobile Styles */
@media (max-width: 992px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		max-width: 320px;
		height: 100vh;
		background-color: var(--background-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
		transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
		padding-top: calc(var(--header-height) + 20px);
	}

	.header__nav--active {
		right: 0;
	}

	.header__menu-list {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
		gap: 25px;
	}

	.header__menu-link {
		font-size: 20px;
	}

	.header__burger {
		display: block;
		z-index: 101; /* To be above the nav */
	}
}

/* 3. Footer styles */
.footer {
	padding-top: 60px;
	background-color: #141424; /* Slightly different shade */
	border-top: 1px solid var(--secondary-color);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-bottom: 60px;
}

.footer__column--brand {
	grid-column: span 1;
}

.footer__tagline {
	margin-top: 15px;
	color: #a0a0b8;
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__list li:not(:last-child) {
	margin-bottom: 12px;
}

.footer__link {
	color: #a0a0b8;
	font-size: 15px;
}
.footer__link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.footer__address {
	color: #a0a0b8;
	font-size: 15px;
	font-style: normal;
}

.footer__bottom {
	border-top: 1px solid var(--secondary-color);
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
	color: #a0a0b8;
}

/* Footer Responsive */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--brand,
	.logo {
		align-items: center;
	}
	.footer__link:hover {
		padding-left: 0;
	}
}

/*
---
--- 4. Hero Section styles
---
*/

.hero {
	min-height: 100vh;
	padding-top: 120px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

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

.hero__content {
	animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: 56px;
	line-height: 1.2;
	margin-bottom: 20px;
	font-weight: 700;
	min-height: 135px; /* To prevent layout shift during typing */
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	color: var(--primary-color);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 40px;
	max-width: 500px;
	color: #a0a0b8;
	animation: fadeIn 1s ease-out 1s both; /* Delayed fade in */
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 15px 30px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 18px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: 2px solid var(--primary-color);
}

.button:hover {
	background-color: #a924d3;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(190, 41, 236, 0.2);
}

.hero__cta {
	animation: fadeIn 1s ease-out 1.2s both; /* Delayed fade in */
}

.hero__visual {
	position: relative;
	animation: fadeIn 1s ease-out 0.7s both;
}

.hero__image-wrapper {
	/* max-width: 450px; */
	position: relative;
	/* padding-top: 100%; 1:1 Aspect Ratio */
	border-radius: 20px;
	overflow: hidden;
	background-color: var(--secondary-color);
}

.hero__image {
	/* position: absolute;
	top: 0;
	left: 0; */
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Hero Responsive */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__visual {
		grid-row: 1; /* Image on top */
		margin-bottom: 40px;
	}
	.hero__title {
		font-size: 44px;
		min-height: 110px;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 576px) {
	.hero {
		min-height: auto;
		padding: 120px 0;
	}
	.hero__title {
		font-size: 36px;
		min-height: 90px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

/*
---
--- 5. Courses Section styles
---
*/

.courses {
	padding: 100px 0;
	background-color: #141424; /* Оттенок фона для выделения секции */
}

/* Общий стиль для заголовков секций */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header__title {
	font-size: 42px;
	margin-bottom: 15px;
	position: relative;
	display: inline-block;
}

.section-header__title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background-color: var(--primary-color);
	border-radius: 2px;
}

.section-header__subtitle {
	font-size: 18px;
	color: #a0a0b8;
	max-width: 600px;
	margin: 0 auto;
}

.courses__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.courses__card {
	background-color: var(--background-color);
	padding: 40px 30px;
	border-radius: 12px;
	border: 1px solid var(--secondary-color);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
	border-color: var(--primary-color);
}

.courses__card-icon {
	margin-bottom: 25px;
}

.courses__card-icon svg {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	transition: color 0.3s ease;
}

.courses__card-title {
	font-size: 22px;
	margin-bottom: 15px;
}

.courses__card-description {
	font-size: 15px;
	color: #a0a0b8;
	line-height: 1.7;
}

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

@media (max-width: 576px) {
	.courses {
		padding: 80px 0;
	}
	.section-header__title {
		font-size: 32px;
	}
	.courses__grid {
		grid-template-columns: 1fr;
	}
}

/*
---
--- 6. Process Section styles
---
*/

.process {
	padding: 100px 0;
}

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

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

.process__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process__step-number {
	position: absolute;
	width: 50px;
	height: 50px;
	right: -25px;
	top: 32px;
	background-color: var(--background-color);
	border: 3px solid var(--primary-color);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--primary-color);
}

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

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

.process__item:nth-child(even) .process__step-number {
	left: -25px;
}

.process__content {
	padding: 20px 30px;
	background-color: #141424;
	border: 1px solid var(--secondary-color);
	position: relative;
	border-radius: 8px;
}

.process__title {
	font-size: 22px;
	margin-bottom: 10px;
}

.process__description {
	font-size: 15px;
	color: #a0a0b8;
}

/* Process Responsive */
@media screen and (max-width: 768px) {
	.process__timeline::after {
		left: 31px;
	}

	.process__item {
		width: 100%;
		padding-left: 70px;
		padding-right: 15px;
	}

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

	.process__step-number,
	.process__item:nth-child(even) .process__step-number {
		left: 6px;
	}
}

/*
---
--- 7. Mentors Section styles
---
*/

.mentors {
	padding: 100px 0;
	background-color: #141424;
}

.mentors-slider {
	padding-bottom: 50px; /* Space for pagination */
}

.mentors__card {
	background-color: var(--background-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--secondary-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentors__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mentors__card-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	background-color: var(--secondary-color);
}

.mentors__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mentors__card-content {
	padding: 25px;
	text-align: center;
}

.mentors__card-name {
	font-size: 22px;
	margin-bottom: 5px;
}

.mentors__card-role {
	color: var(--primary-color);
	font-size: 15px;
	margin-bottom: 15px;
}

.mentors__card-socials {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.mentors__card-socials a {
	color: #a0a0b8;
}

.mentors__card-socials a:hover {
	color: var(--primary-color);
	transform: scale(1.1);
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: var(--secondary-color);
	width: 10px;
	height: 10px;
	opacity: 0.8;
}

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

/*
---
--- 8. Reviews Section styles
---
*/

.reviews {
	padding: 100px 0;
}

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

.reviews-slider {
	padding: 0 50px; /* Space for arrows */
}

.reviews__card {
	background-color: #141424;
	border: 1px solid var(--secondary-color);
	border-radius: 12px;
	padding: 40px;
	position: relative;
	overflow: hidden;
	height: 100%;
}

.reviews__card-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	opacity: 0.05;
}

.reviews__card-icon svg {
	width: 80px;
	height: 80px;
	color: var(--text-color);
}

.reviews__card-text {
	font-size: 18px;
	line-height: 1.8;
	color: #a0a0b8;
	margin-bottom: 30px;
	font-style: italic;
}

.reviews__card-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.reviews__card-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--secondary-color);
}

.reviews__card-name {
	font-size: 18px;
	font-weight: 600;
}

.reviews__card-course {
	font-size: 15px;
	color: var(--primary-color);
}

/* Custom Swiper navigation */
.reviews-slider__button-prev,
.reviews-slider__button-next {
	color: var(--primary-color);
}

.reviews-slider__button-prev {
	left: 0;
}

.reviews-slider__button-next {
	right: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.reviews-slider {
		padding: 0;
	}
	.reviews-slider__button-prev,
	.reviews-slider__button-next {
		display: none; /* Hide arrows on mobile for a cleaner look, user can swipe */
	}
}

/*
---
--- 9. Contact Section styles
---
*/
.contact {
	padding: 100px 0;
}

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

.contact__title {
	font-size: 42px;
	line-height: 1.3;
	margin-bottom: 20px;
}

.contact__subtitle {
	font-size: 18px;
	color: #a0a0b8;
	margin-bottom: 30px;
}

.contact__details p {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	font-size: 16px;
}

.contact__details p i {
	color: var(--primary-color);
}

.contact__form-wrapper {
	background-color: #141424;
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--secondary-color);
}

.form__group {
	margin-bottom: 20px;
}

.form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #a0a0b8;
}

.form__input {
	width: 100%;
	padding: 15px;
	background-color: var(--background-color);
	border: 1px solid var(--secondary-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(190, 41, 236, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 10px;
}

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 14px;
	color: #a0a0b8;
}

.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.form__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.form__button:disabled {
	background-color: var(--secondary-color);
	cursor: not-allowed;
	transform: none;
}

.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	border: 1px solid var(--primary-color);
	border-radius: 12px;
	background-color: rgba(190, 41, 236, 0.1);
}

.form__success-message h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: var(--primary-color);
}

/* Contact Responsive */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__info {
		text-align: center;
	}
	.contact__details {
		display: flex;
		justify-content: center;
		flex-direction: column;
		gap: 30px;
	}
}

/*
---
--- 10. Additional Elements styles
---
*/

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: #141424;
	padding: 20px 25px;
	border: 1px solid var(--secondary-color);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 200;

	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;

	transform: translateY(200%);
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.cookie-popup__text {
	font-size: 15px;
	color: #a0a0b8;
}

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

.cookie-popup__accept {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie-popup__accept:hover {
	background-color: #a924d3;
}

@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* Static Pages (privacy.html, terms.html, etc.) */
.pages {
	padding: calc(var(--header-height) + 60px) 0 60px;
}

.pages .container {
	max-width: 800px;
}

.pages h1,
.pages h2 {
	color: var(--primary-color);
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	border-bottom: 2px solid var(--secondary-color);
	padding-bottom: 15px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: #a0a0b8;
	margin-bottom: 20px;
}

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

.pages li {
	margin-bottom: 10px;
	color: #a0a0b8;
}

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

.pages a:hover {
	text-decoration: none;
}

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