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

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

	/* Colors */
	--color-primary: #4ade80; /* Emerald Green */
	--color-primary-hover: #34d399;
	--color-dark: #f9fafb; /* Light background */
	--color-light: #111827; /* Dark sections */
	--color-text-light: #1f2937; /* Dark text for light bg */
	--color-text-dark: #ffffff; /* Light text for dark sections */
	--color-text-muted: #6b7280; /* Muted text for light bg */
	--color-border: #e5e7eb; /* Light border */

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

	--fs-base: 1rem; /* 16px */
	--fs-lg: 1.125rem;
	--fs-xl: 1.25rem;
	--fs-2xl: 1.5rem;
	--fs-3xl: 2rem;
	--fs-4xl: 2.5rem;

	/* Other */
	--transition-fast: 0.2s ease;
	--border-radius: 0.5rem;
}

/* ============ BASE STYLES ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	background-color: var(--color-dark);
	color: var(--color-text-light);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text-light);
	line-height: 1.2;
}

ul {
	list-style: none;
}

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

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

/* ============ REUSABLE COMPONENTS ============ */
.container {
	max-width: 1200px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

.button {
	display: inline-block;
	background-color: var(--color-primary);
	color: #1f2937;
	padding: 0.8rem 1.8rem !important;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: background-color var(--transition-fast);
	font-family: var(--font-heading);
}

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

/* ============ HEADER ============ */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(249, 250, 251, 0.95);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-size: var(--fs-xl);
	font-weight: 700;
	color: var(--color-text-light);
}

.header__nav {
	display: none; /* Hidden on mobile by default */
}

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

.header__nav-link {
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--color-text-light);
	transition: color var(--transition-fast);
	position: relative;
	padding: 0.5rem 0;
}

.header__nav-link:not(.button)::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary);
	transition: width var(--transition-fast);
}

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

.header__nav-link:hover:not(.button)::after {
	width: 100%;
}

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__nav {
		display: block;
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-dark);
		padding: 2rem;
		transition: left 0.4s ease;
	}

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

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 2rem;
	}

	.header__nav-link {
		font-size: var(--fs-2xl);
	}
}

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

.footer__container {
	display: grid;
	gap: 3rem;
	padding-bottom: 3rem;
}

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

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

.footer__title {
	font-size: var(--fs-lg);
	margin-bottom: 1.5rem;
}

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

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

.footer__link {
	color: var(--color-text-muted);
	transition: color var(--transition-fast);
	display: inline-block;
}

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

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

/* ============ MEDIA QUERIES ============ */

/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 769px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	.header__nav {
		display: block;
	}

	.header__burger-btn {
		display: none;
	}

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

/* ============ HERO SECTION ============ */
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.hero__container {
	display: grid;
	align-items: center;
	gap: 4rem;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: var(--fs-3xl);
	margin-bottom: 1.5rem;
	min-height: 100px; /* Reserve space for typing text */
}

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

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

.hero__description {
	font-size: var(--fs-lg);
	color: var(--color-text-muted);
	max-width: 650px;
	margin: 0 auto 2.5rem;
}

.hero__cta-button {
	font-size: var(--fs-lg);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2.5rem;
}

.hero__note {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.hero__image-wrapper {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}

.hero__image {
	border-radius: var(--border-radius);
	position: relative;
	z-index: 2;
}

.hero__image-bg {
	position: absolute;
	top: -1.5rem;
	left: -1.5rem;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, var(--color-primary), #38bdf8);
	border-radius: var(--border-radius);
	z-index: 1;
	transition: transform var(--transition-fast);
}

.hero__image-wrapper:hover .hero__image-bg {
	transform: translate(0.5rem, 0.5rem);
}

/* For large devices */
@media screen and (min-width: 769px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 2rem;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: var(--fs-4xl);
		min-height: 97px;
	}

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

/* ============ LIGHT SECTION STYLES ============ */
.section--light {
	background-color: var(--color-light);
	padding: 6rem 0;
}

.section--light .section__title,
.section--light .section__subtitle,
.section--light h3,
.section--light p,
.section--light a {
	color: var(--color-text-dark);
}

.section--light .section__subtitle {
	color: #d1d5db;
}

/* ============ SECTION HEADER ============ */
.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

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

.section__subtitle {
	font-size: var(--fs-lg);
}

/* ============ COURSES SECTION ============ */
.courses__grid {
	display: grid;
	gap: 2rem;
}

.course-card {
	background-color: #ffffff;
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	border: 1px solid #e5e7eb;
	text-align: center;
	transition: transform var(--transition-fast),
		box-shadow var(--transition-fast);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.course-card__icon-wrapper {
	display: inline-flex;
	padding: 1rem;
	background-color: #e0f2f1; /* A light green tone */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.course-card__icon {
	color: var(--color-primary);
	width: 32px;
	height: 32px;
}

.course-card__title {
	color: var(--color-light) !important;
	font-size: var(--fs-xl);
	margin-bottom: 1rem;
}

.course-card__description {
	color: #000000 !important; /* Darker muted text for light bg */
	margin-bottom: 2rem;
}

.course-card__link {
	font-weight: 500;
	font-family: var(--font-heading);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-primary) !important;
}

.course-card__link:hover {
	text-decoration: underline;
}

.course-card__link .lucide {
	transition: transform var(--transition-fast);
}

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

/* For medium devices */
@media screen and (min-width: 576px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============ ABOUT SECTION ============ */
.about {
	background-color: var(--color-light);
	padding: 6rem 0;
	overflow: hidden;
}

.about__container {
	display: grid;
	gap: 4rem;
	align-items: center;
}

.about__content .section__title,
.about__content .section__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.about__content .section__subtitle {
	color: #d1d5db;
	margin-bottom: 2.5rem;
}

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

.about__stats-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.about__stats-icon {
	color: var(--color-primary);
	flex-shrink: 0; /* Prevents icon from shrinking */
	margin-top: 3px;
}

.about__image-wrapper {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}

.about__image {
	border-radius: var(--border-radius);
	position: relative;
	z-index: 2;
}

.about__image-bg-shape {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 2px solid var(--color-primary);
	border-radius: var(--border-radius);
	top: 1.5rem;
	left: 1.5rem;
	z-index: 1;
	transition: transform var(--transition-fast);
}

.about__image-wrapper:hover .about__image-bg-shape {
	transform: translate(-0.5rem, -0.5rem);
}

/* For large devices */
@media screen and (min-width: 992px) {
	.about__container {
		grid-template-columns: 1fr 1fr;
		gap: 6rem;
	}
}

/* ============ MENTORS SECTION ============ */
.mentors__grid {
	display: grid;
	gap: 2rem;
}

.mentor-card {
	background-color: #ffffff;
	border-radius: var(--border-radius);
	overflow: hidden;
	text-align: center;
	border: 1px solid #e5e7eb;
	transition: transform var(--transition-fast),
		box-shadow var(--transition-fast);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.mentor-card__image-wrapper {
	height: 280px;
	overflow: hidden;
}

.mentor-card__image {
	width: 100%;
	height: 100%;
	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: var(--fs-xl);
	margin-bottom: 0.25rem;
	color: var(--color-primary) !important;
}

.mentor-card__role {
	color: var(--color-primary);
	font-weight: 500;
	margin-bottom: 1rem;
	color: var(--color-light) !important;
}

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

.mentor-card__socials a {
	color: #6b7280 !important; /* Muted color for icons */
}

.mentor-card__socials a:hover {
	color: var(--color-text-light) !important;
}

/* For medium devices */
@media screen and (min-width: 576px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.mentors__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ============ REVIEWS SECTION ============ */
.reviews {
	background-color: var(--color-light);
	padding: 6rem 0;
}

.reviews__grid {
	display: grid;
	gap: 2rem;
}

.review-card {
	background-color: #ffffff; /* White cards on dark section */
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	border: 1px solid #374151;
	position: relative;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-card__icon {
	position: absolute;
	top: 1.5rem;
	left: 2rem;
	color: #9ca3af;
	width: 48px;
	height: 48px;
}

.review-card__text {
	position: relative;
	z-index: 100;
	font-size: var(--fs-lg);
	font-style: italic;
	color: #4b5563;
	margin-bottom: 2rem;
	flex-grow: 1; /* Pushes author to the bottom */
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

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

.review-card__author-name {
	margin-bottom: 0.25rem;
	color: var(--color-text-light);
}

.review-card__author-course {
	font-size: 0.9rem;
	color: var(--color-primary);
}

/* For large devices */
@media screen and (min-width: 992px) {
	.reviews__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============ CONTACT SECTION ============ */
.contact {
	padding: 6rem 0;
}

.contact__container {
	display: grid;
	gap: 4rem;
}

.contact__info .section__title,
.contact__info .section__subtitle {
	text-align: left;
	margin: 0;
}

.contact__info .section__subtitle {
	margin-top: 1rem;
	margin-bottom: 2rem;
}

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

.contact__details li {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: var(--fs-lg);
}

.contact__details a:hover {
	text-decoration: underline;
}

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

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

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	color: var(--color-text-dark);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border-radius: var(--border-radius);
	border: 1px solid #d1d5db;
	background-color: var(--color-text-light);
	color: var(--color-text-dark);
	font-size: var(--fs-base);
	font-family: var(--font-body);
	transition: border-color var(--transition-fast),
		box-shadow var(--transition-fast);
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.form__checkbox-input {
	margin-top: 5px;
	width: 1em;
	height: 1em;
	accent-color: var(--color-primary);
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: #4b5563;
}

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

.form__submit-button {
	border: none;
	width: 100%;
	justify-content: center;
	padding: 1rem;
	font-size: var(--fs-lg);
}

.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 3rem 1.5rem;
	border: 2px dashed var(--color-primary);
	border-radius: var(--border-radius);
}

.form__success-message.is-visible {
	display: block;
}

.form__success-message .lucide {
	color: var(--color-primary);
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
}

.form__success-message h3 {
	font-size: var(--fs-2xl);
	margin-bottom: 0.5rem;
}

/* For large devices */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 6rem;
	}
}

/* ============ COOKIE POP-UP ============ */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	background-color: #ffffff;
	color: var(--color-text-light);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--color-border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
	font-size: 0.9rem;
}

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

.cookie-popup__button {
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
}

/* For large devices */
@media screen and (min-width: 769px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
		max-width: 1200px;
		left: 50%;
		transform: translate(-50%, 200%);
	}

	.cookie-popup.is-visible {
		transform: translate(-50%, 0);
	}

	.cookie-popup__text {
		font-size: var(--fs-base);
	}
}

/* ============ STYLES FOR POLICY PAGES ============ */
.pages {
	background-color: var(--color-light);
	color: var(--color-text-dark);
	padding: calc(var(--header-height) + 4rem) 0 6rem;
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 1rem;
}

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

.pages p {
	color: #374151;
	line-height: 1.7;
	margin-bottom: 1rem;
}

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

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

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

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

.pages strong {
	font-weight: 700;
}
