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

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

	/* Colors */
	--primary-color: #38b2ac;
	--primary-color-alt: #319795;
	--title-color: #2d3748;
	--text-color: #4a5568;
	--body-color: #ffffff;
	--container-color: #f7fafc;

	/* Font and typography */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Poppins', sans-serif;
	--biggest-font-size: 2.25rem;
	--h1-font-size: 1.75rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1.125rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-semi-bold: 600;
	--font-bold: 700;

	/* Margins */
	--mb-0-5: 0.5rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--title-font);
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

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

.container {
	max-width: 1120px;
	margin-left: var(--mb-1-5);
	margin-right: var(--mb-1-5);
}

/* =========== HEADER =========== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
	box-shadow: 0 2px 4px hsla(0, 0%, 15%, 0.1);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	font-size: 1.25rem;
}

.logo svg {
	width: 32px;
	height: 32px;
}

.header__nav {
	display: none;
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--mb-2);
}

.header__nav-link {
	color: var(--title-color);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	transition: background-color 0.3s;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: white;
}

.header__burger {
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--title-color);
}

/* Show menu */
.show-menu {
	display: block;
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	background-color: var(--body-color);
	padding: var(--mb-2) 0;
	box-shadow: 0 4px 6px hsla(0, 0%, 15%, 0.1);
}

/* =========== FOOTER =========== */
.footer {
	background-color: var(--title-color);
	color: #a0aec0;
	padding-top: 4rem;
}

.footer__container {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
	color: white;
}

.footer__description {
	margin-top: var(--mb-1);
}

.footer__title {
	color: white;
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-1);
}

.footer__link {
	color: #a0aec0;
	transition: color 0.3s;
	display: inline-block;
	margin-bottom: var(--mb-0-5);
}

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

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: var(--mb-1);
}

.footer__list--contact i {
	color: var(--primary-color);
	margin-top: 4px;
}

.footer__copyright {
	margin-top: 4rem;
	padding: 1.5rem 0;
	border-top: 1px solid #4a5568;
	text-align: center;
}

.footer__copyright p {
	font-size: var(--small-font-size);
}

/* =========== MEDIA QUERIES =========== */
@media screen and (min-width: 768px) {
	body {
		font-size: var(--normal-font-size);
	}

	.header__nav {
		display: block;
	}

	.header__nav-list {
		flex-direction: row;
		gap: 2.5rem;
	}

	.header__burger {
		display: none;
	}

	.header__nav-link--button {
		padding: 0.5rem 1rem;
	}
}

@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* =========== REUSABLE CSS CLASSES =========== */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	transition: 0.3s;
	border: none;
	cursor: pointer;
}

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

.button__icon {
	margin-left: var(--mb-0-5);
	transition: transform 0.3s;
}

.button--flex {
	display: inline-flex;
	align-items: center;
}

.button--flex:hover .button__icon {
	transform: translateX(0.25rem);
}

/* =========== HERO =========== */
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 2rem;
}

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

.hero__data {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	font-weight: var(--font-bold);
	margin-bottom: var(--mb-1);
	line-height: 1.3;
}

/* Styles for animation */
.hero__title-animated {
	color: var(--primary-color);
}

.hero__title-animated .letter {
	display: inline-block;
	line-height: 1em;
	opacity: 0; /* Initially hidden for animation */
}

.hero__description {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-2);
}

.hero__image-container {
	position: relative;
	display: flex;
	justify-content: center;
}

.hero__image-container::before {
	content: '';
	position: absolute;
	width: 80%;
	height: 100%;
	background-color: var(--container-color);
	border-radius: 0.75rem;
	top: -10%;
	left: 10%;
	z-index: -1;
	transform: rotate(-4deg);
}

.hero__image {
	width: 100%;
	border-radius: 0.75rem;
}

/* =========== MEDIA QUERIES (for Hero) =========== */
@media screen and (min-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 4rem);
		padding-bottom: 4rem;
	}

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

	.hero__data {
		text-align: left;
	}

	.hero__image-container::before {
		width: 90%;
		left: 0;
	}
}

@media screen and (min-width: 1024px) {
	.hero__title {
		font-size: 2.5rem;
	}

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

/* =========== REUSABLE CSS CLASSES (Additions) =========== */
.section {
	padding: 4rem 0 2rem;
}

.section__title {
	margin: 0 auto var(--mb-2);
	font-size: var(--h1-font-size);
	text-align: center;
}

/* =========== ABOUT =========== */
.about__container {
	display: grid;
	gap: 2.5rem;
}

.about__image-container {
	display: flex;
	justify-content: center;
	position: relative;
}

.about__image-container::after {
	content: '';
	position: absolute;
	width: 80%;
	height: 100%;
	background-color: var(--primary-color);
	opacity: 0.1;
	border-radius: 0.75rem;
	top: 5%;
	left: 15%;
	z-index: -1;
	transform: rotate(4deg);
}

.about__image {
	width: 100%;
	border-radius: 0.75rem;
}

.about__data {
	text-align: center;
}

.about__description {
	margin-bottom: var(--mb-2);
}

.about__features {
	display: grid;
	gap: var(--mb-1-5);
	text-align: left;
}

.about__feature {
	display: flex;
	align-items: flex-start;
	gap: var(--mb-1);
}

.about__feature-icon {
	font-size: 1.5rem;
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 5px;
}

.about__feature-title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

/* =========== MEDIA QUERIES (for About) =========== */
@media screen and (min-width: 768px) {
	.section {
		padding: 6rem 0 4rem;
	}

	.section__title {
		font-size: var(--h2-font-size);
	}

	.about__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.about__data {
		text-align: left;
	}

	.about__features {
		gap: 2rem;
	}
}

@media screen and (min-width: 1024px) {
	.section__title {
		font-size: 2rem;
	}
}

/* =========== REUSABLE CSS CLASSES (Additions) =========== */
.section__subtitle {
	display: block;
	text-align: center;
	font-size: var(--normal-font-size);
	margin-bottom: 3rem;
	color: var(--text-color);
}

/* =========== TECHNOLOGIES =========== */
.tech__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tech__card {
	background-color: var(--body-color);
	border: 1px solid #e2e8f0;
	padding: 2rem 1.5rem;
	border-radius: 0.75rem;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.tech__card:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 8px 24px hsla(177, 63%, 15%, 0.15);
}

.tech__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: hsla(177, 63%, 40%, 0.1);
	border-radius: 50%;
	margin-bottom: var(--mb-1-5);
}

.tech__card-icon i {
	font-size: 2.5rem;
	color: var(--primary-color);
}

.tech__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

/* =========== MEDIA QUERIES (for Tech) =========== */
@media screen and (min-width: 768px) {
	.section__subtitle {
		margin-bottom: 4rem;
	}
}

/* =========== COURSES =========== */
.courses {
	background-color: var(--container-color);
}

.courses__container {
	display: grid;
	gap: 2rem 1.5rem;
	padding-top: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	justify-content: center;
}

.course-card {
	background-color: var(--body-color);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 4px 12px hsla(177, 63%, 15%, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.course-card:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 8px 24px hsla(177, 63%, 15%, 0.15);
}

.course-card__image-wrapper {
	position: relative;
}

.course-card__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.course-card__badges {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: flex;
	gap: 0.5rem;
}

.course-card__badge {
	background-color: hsla(0, 0%, 100%, 0.8);
	backdrop-filter: blur(4px);
	color: var(--title-color);
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

.course-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Makes content fill the space */
}

.course-card__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

.course-card__description {
	margin-bottom: var(--mb-1-5);
	flex-grow: 1; /* Pushes button to the bottom */
}

.button--full {
	width: 100%;
	justify-content: center;
}

/* =========== REVIEWS =========== */
.reviews {
	position: relative;
	padding-bottom: 5rem;
}

.reviews__container {
	padding-top: 1rem;
}

.testimonial-card {
	background-color: var(--container-color);
	border: 1px solid #e2e8f0;
	padding: 2rem;
	border-radius: 0.75rem;
	text-align: center;
}

.testimonial-card__image {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto var(--mb-1);
	border: 3px solid var(--primary-color);
}

.testimonial-card__name {
	font-size: var(--h3-font-size);
	margin-bottom: 0.25rem;
}

.testimonial-card__role {
	font-size: var(--small-font-size);
	color: var(--text-color);
	margin-bottom: var(--mb-1);
}

.testimonial-card__text {
	margin-bottom: var(--mb-1-5);
	font-style: italic;
}

.testimonial-card__rating {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	color: #fbbf24; /* Amber color for stars */
}

.testimonial-card__rating i {
	fill: #fbbf24;
}

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

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

/* =========== CONTACT =========== */
.contact {
	background-color: var(--container-color);
}

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

.contact__content {
	text-align: center;
}

.contact__description {
	max-width: 600px;
	margin: 0 auto;
}

.contact__form {
	display: grid;
	gap: 1.5rem;
}

.contact__form-div {
	position: relative;
	height: auto;
}

.contact__form-input {
	width: 100%;
	background: var(--body-color);
	color: var(--text-color);
	font-size: var(--normal-font-size);
	border: 2px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 1rem;
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-tag {
	position: absolute;
	top: -0.75rem;
	left: 1.25rem;
	font-size: var(--small-font-size);
	padding: 0.25rem;
	background-color: var(--container-color);
	color: var(--title-color);
	font-weight: var(--font-medium);
}

.contact__form-div--checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.contact__form-checkbox {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--primary-color);
}

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

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

.contact__success-message {
	text-align: center;
	font-weight: var(--font-medium);
	color: var(--title-color);
	margin-top: 1.5rem;
	display: none; /* Initially hidden */
}

/* =========== MEDIA QUERIES (for Contact) =========== */
@media screen and (min-width: 768px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.contact__content {
		text-align: left;
	}
}

/* =========== COOKIE POP-UP =========== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--title-color);
	box-shadow: 0 -2px 10px hsla(0, 0%, 0%, 0.2);
	padding: 1.5rem 0;
	z-index: var(--z-fixed);
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0;
}

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1rem;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

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

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
}

@media screen and (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		justify-content: space-between;
	}
}

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

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

.pages h1,
.pages h2 {
	margin-bottom: var(--mb-1-5);
	margin-top: var(--mb-2);
}

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

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

.pages p {
	margin-bottom: var(--mb-1);
}

.pages ul {
	list-style: disc;
	padding-left: 2rem;
	margin-bottom: var(--mb-1-5);
}

.pages li {
	margin-bottom: var(--mb-0-5);
}

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

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

.pages strong {
	color: var(--title-color);
	font-weight: var(--font-semi-bold);
}
