/* GOOGLE FONTS */
/* Poppins */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-ExtraLight.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-Italic.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-Light.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-SemiBold.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype"),
    url("../fonts/Poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Lora */
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora/Lora-VariableFont_wght.ttf") format("truetype"),
    url("../fonts/Lora/Lora-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

  /* Colors */
  /* Color mode HSL(hue, saturation, lightness) */
  --first-color: hsl(260, 100%, 66%);
  --second-color: hsl(328, 100%, 66%);
  --gradient-color: linear-gradient(
    75deg,
    var(--second-color) 12%,
    var(--first-color) 90%
  );
  --first-color: hsl(210, 100%, 56%); /* Strong blue */
  --second-color: hsl(194, 100%, 53%); /* Light blue */
  --gradient-color: linear-gradient(
    75deg,
    var(--second-color) 12%,
    var(--first-color) 90%
  ); /* Gradient from light blue to strong blue */
  --first-color-light: hsl(210, 100%, 80%); /* Light blue */
  --first-color-dark: hsl(210, 100%, 30%); /* Dark blue */
  --title-color: hsl(210, 100%, 20%); /* Dark blue */
  --text-color: hsl(210, 20%, 40%); /* Muted blue */
  --text-color-light: hsl(210, 10%, 60%); /* Light muted blue */
  --white-color: hsl(0, 0%, 100%); /* White */
  --body-color: hsl(210, 100%, 98%); /* Very light blue */
  --container-color: hsl(210, 10%, 95%); /* Very light blue-gray */

  /* Font and typography */
  --body-font: "Poppins", sans-serif;
  --second-font: "Lora", serif;
  --biggest-font-size: 2.75rem;
  --bigger-font-size: 2rem;
  --big-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /* Font weight */
  --font-regular: 200;
  --font-medium: 300;

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

/* Responsive typography */
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 6rem;
    --bigger-font-size: 4rem;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* THEME */
.header-buttons {
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
}

.change-theme {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* CSS CLASSES */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem; /* margin left and right: 1.5rem */
}

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

.section {
  padding-block: 5rem 1rem; /* padding top: 5 rem | padding bottom: 1rem */
}

.section-title {
  text-align: center;
  font-size: var(--bigger-font-size);
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/* HEADER & NAVIGATION */
.header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

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

.header-logo {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-toggle,
.header-close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
  .header-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 100%, 0.3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* For safari */
    transition: right 0.4s;
  }
}

.header-list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.menu-links {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.header-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Add blur to header */
.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 100%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /* For safari */
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* HOME */
.main-container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.main-data {
  text-align: center;
}

.home-title {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
  line-height: 135%;
  position: relative;
  width: max-content;
  margin: 0 auto 1.25rem;
}

.home-title-box {
  display: flex;
  justify-content: center;
  column-gap: 0.75rem;
}

.home-title-box div {
  background: var(--gradient-color);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--white-color);
}

.home-title img {
  position: absolute;
  width: 50px;
  left: -1rem;
  bottom: 1rem;
}

.home-description {
  position: relative;
  margin-bottom: 1.5rem;
}

.home-description img {
  position: absolute;
  width: 16px;
  right: 4rem;
  bottom: -1rem;
}

.home-container {
  display: flex;
  justify-content: center;
  column-gap: 3rem;
  margin-top: 2rem;
}

.home-container h3 {
  font-size: var(--big-font-size);
  font-family: var(--second-font);
}

.home-container span {
  font-size: var(--small-font-size);
}

.home-img {
  width: 320px;
  justify-self: center;
}

/* BUTTON */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  background: var(--gradient-color);
  padding: 1rem 1.8rem;
  border-radius: 4rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
}

.button i {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.button:hover i {
  transform: translateX(0.25rem);
}

/* FIRST SECTION */
.first-section-container {
  row-gap: 2rem;
}

.first-section-data {
  text-align: center;
}

.first-section-description {
  margin-bottom: 2rem;
}

.first-section-image {
  position: relative;
  justify-self: center;
}

.first-section-images {
  width: 320px;
}

.first-section-course,
.first-section-rate {
  background-color: var(--container-color);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  width: max-content;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  position: absolute;
}

.first-section-course {
  bottom: 1.5rem;
  right: 0.5rem;
}

.first-section-icon {
  background-color: hsl(2, 100%, 95%);
  border-radius: 50%;
  display: flex;
  padding: 6px;
  font-size: 1.5rem;
  color: hsl(2, 100%, 58%);
}

.first-section-title,
.first-section-number {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.first-section-title {
  color: var(--title-color);
}

.first-section-number {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.first-section-rate {
  top: 4.5rem;
  left: 0.5rem;
}

/* SECOND SECTION */
.second-section {
  row-gap: 2rem;
}

.second-section-data {
  text-align: center;
}

.second-section-data {
  margin-bottom: 2rem;
}

.second-section-images {
  position: relative;
  width: 300px;
  height: 280px;
  justify-self: center;
}

.second-section-image-1,
.second-section-image-2 {
  width: 250px;
  border-radius: 5.5rem;
  position: absolute;
}

.second-section-image-1 {
  border: 5px solid var(--body-color);
  top: 0;
  left: 0;
  z-index: 1;
}

.second-section-image-2 {
  right: 0;
  bottom: 0;
}

.second-section-container-1,
.second-section-container-2 {
  position: absolute;
  z-index: 10;
  background-color: var(--container-color);
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  width: max-content;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.second-section-icon,
.second-section-title {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.second-section-icon {
  font-size: 1.5rem;
}

.second-section-title {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.second-section-container-1 {
  top: 1.5rem;
  right: 0;
}

.second-section-container-2 {
  left: 0;
  bottom: 1.5rem;
}

/* THIRD SECTION */
.third-section-title div {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.third-section-button {
  flex-direction: column;
  row-gap: 0.5rem;
  border-radius: 50%;
  width: 88px;
  height: 88px;
  margin-bottom: 2rem;
}

.third-section-content-1,
.third-section-content-2 {
  display: grid;
  justify-self: center;
}

.third-section-content-1 img,
.third-section-content-2 img {
  border-radius: 12.5rem;
  border: 5px solid var(--first-color-light);
}

.third-section-content-1 {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  justify-items: center;
}

.third-section-data {
  text-align: center;
  grid-column: 1 / 3;
}

.third-section-image-1,
.third-section-image-2 {
  width: 140px;
}

.third-section-image-2 {
  margin-top: 2.5rem;
}

.third-section-content-2 {
  row-gap: 2rem;
}

.third-section-image-3,
.third-section-image-4 {
  width: 230px;
}

.third-section-image-3 {
  transform: translateX(-2.5rem) rotate(10deg);
}

.third-section-image-4 {
  transform: translateX(2.5rem) rotate(-10deg);
}

/* FOURTH SECTION */
.fourth-section {
  padding-bottom: 2rem;
}

.fourth-section-content {
  display: grid;
  row-gap: 1.5rem;
  background: var(--gradient-color);
  padding: 3rem 1rem 2.5rem;
  border-radius: 2rem;
  text-align: center;
}

.fourth-section-title,
.fourth-section-description {
  color: var(--white-color);
}

.fourth-section-title {
  font-size: var(--big-font-size);
  font-family: var(--second-font);
  margin-bottom: 0.75rem;
}

.fourth-section-input,
.fourth-section-button {
  width: 100%;
  outline: none;
  border: none;
}

.fourth-section-input {
  padding: 1.5rem;
  border-radius: 3rem;
  margin-bottom: 0.75rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.fourth-section-input::placeholder {
  color: var(--text-color-light);
}

.fourth-section-button {
  justify-content: center;
  box-shadow: 0 4px 12px hsla(260, 100%, 52%, 0.3);
  padding-block: 1.25rem; /* padding top and bottom: 1.25rem */
  cursor: pointer;
}

/* FOOTER */
.footer {
  background-color: var(--first-color-dark);
  color: var(--text-color-light);
  padding-block: 3rem 2rem; /* paddint top: 3rem | padding bottom: 2rem */
}

.footer,
.footer-content,
.footer-data {
  row-gap: 2.5rem;
}

.footer-content {
  border-bottom: 1px solid var(--text-color-light);
  padding-bottom: 2.5rem;
}

.footer-logo,
.footer-social-link {
  background: var(--gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo,
.footer-title {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  margin-bottom: 1.25rem;
}

.footer-logo {
  display: inline-block;
  font-weight: var(--font-medium);
}

.footer-title {
  color: var(--white-color);
}

.footer-social,
.footer-social-link {
  display: flex;
}

.footer-social {
  column-gap: 1.25rem;
}

.footer-social-link {
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.footer-social-link:hover {
  transform: translateY(-0.25rem);
}

/*  SCROLL BAR */
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(260, 16%, 75%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(260, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(260, 16%, 55%);
}

/* MOBILE RESPONSIVENESS */
/* For small devices */
@media screen and (max-width: 345px) {
  .container {
    margin-inline: 1rem; /* margin left and right: 1rem */
  }

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

  .second-section-images {
    width: 250px;
  }

  .third-section-image-3 {
    transform: translateX(0) rotate(15deg);
  }

  .third-section-image-4 {
    transform: translateX(0) rotate(-15deg);
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .main-container,
  .first-section-container,
  .second-section,
  .third-section,
  .fourth-section {
    grid-template-columns: 350px;
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  .nav {
    column-gap: 4.5rem;
  }

  .header-toggle,
  .header-close {
    display: none;
  }

  .header-list {
    flex-direction: row;
    column-gap: 4.5rem;
  }

  .header-menu {
    margin-left: auto;
  }

  .fourth-section {
    grid-template-columns: 600px;
  }

  .fourth-section-content {
    padding-inline: 3rem; /* padding left and right: 3rem */
  }

  /* Make inputs stacked vertically */
  .fourth-section-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adds spacing between form elements */
  }

  .fourth-section-input {
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
  }

  .fourth-section-textarea {
    resize: vertical;
    height: 100px; /* Adjust height for the description field */
  }

  .fourth-section-button {
    padding: 1rem;
    font-size: 1rem;
    background-color: #007bff; /* Adjust color for the button */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  .fourth-section-button:hover {
    background-color: #0056b3;
  }

  .fourth-section-description {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #555;
  }

  .footer-content {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer-data {
    grid-template-columns: repeat(3, max-content);
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .section-title,
  .main-data,
  .first-section-data,
  .second-section-data {
    text-align: initial;
  }

  .main-container,
  .first-section-container,
  .second-section {
    grid-template-columns: repeat(2, 400px);
    align-items: center;
  }

  .home-title {
    margin: 0 0 1.25rem;
  }

  .home-title-box,
  .home-container {
    justify-content: initial;
  }

  .home-title img {
    left: initial;
    right: 0;
  }

  .first-section-data {
    order: 1;
  }

  .third-section-content-1 {
    grid-template-columns: max-content 200px max-content;
  }

  .third-section-data {
    grid-column: initial;
    order: 2;
    margin-top: 3rem;
  }

  .third-section-image-2 {
    order: 3;
    margin: 0;
  }

  .third-section-title {
    text-align: center;
  }

  .third-section-content-2 {
    grid-template-columns: repeat(2, max-content);
    column-gap: 1rem;
  }

  .third-section-image-3 {
    transform: translate(0) rotate(15deg);
  }

  .third-section-image-4 {
    transform: translate(0) rotate(-15deg);
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 1.5rem; /* padding top: 7rem | padding bottom: 1.5rem */
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* For Safari */
  }

  .main-container {
    grid-template-columns: repeat(2, 500px);
  }

  .home-img {
    width: 500px;
  }

  .home-title {
    margin-bottom: 1.5rem;
  }

  .home-title-box {
    column-gap: 1.5rem;
  }

  .home-title div {
    border-radius: 1rem;
  }

  .home-title img {
    width: 95px;
    top: 10rem;
    right: -1.5rem;
  }

  .home-description {
    margin-bottom: 2rem;
    padding-right: 5rem;
  }

  .home-description img {
    width: 24px;
    top: -2rem;
    left: -2rem;
  }

  .home-container {
    margin-top: 3rem;
    column-gap: 4rem;
  }

  .first-section-container {
    grid-template-columns: 500px 500px;
    column-gap: 2rem;
  }

  .first-section-images {
    width: 500px;
  }

  .first-section-icon {
    padding: 9px;
    font-size: 2rem;
  }

  .first-section-title,
  .first-section-number {
    font-size: var(--normal-font-size);
  }

  .second-section {
    grid-template-columns: 470px 580px;
    column-gap: 4rem;
  }

  .second-section-images {
    width: 580px;
    height: 576px;
  }

  .second-section-image-1,
  .second-section-image-2 {
    width: 500px;
  }

  .second-section-image-1 {
    border: 10px solid var(--body-color);
  }

  .second-section-icon {
    font-size: 2rem;
  }

  .second-section-title {
    font-size: var(--normal-font-size);
  }

  .second-section-container-1 {
    top: 6rem;
    right: 2rem;
  }

  .second-section-container-2 {
    left: 3rem;
    bottom: 3.5rem;
  }

  .third-section-content-1 {
    grid-template-columns: max-content 400px max-content;
    column-gap: 2.5rem;
  }

  .third-section-content-1 img,
  .third-section-content-2 img {
    border: 10px solid var(--first-color-light);
  }

  .third-section-image-1,
  .third-section-image-2 {
    width: 280px;
  }

  .third-section-image-3,
  .third-section-image-4 {
    width: 500px;
  }

  .third-section-data {
    margin-top: 5rem;
  }

  .fourth-section {
    grid-template-columns: 992px;
    padding-block: 2rem 5rem; /* padding top: 2rem | padding bottom: 5rem */
  }

  .fourth-section-content {
    padding: 4rem 12rem;
    row-gap: 2.5rem;
  }

  .fourth-section-title {
    margin-bottom: 1rem;
  }

  .footer {
    padding-block: 5rem 3rem; /* padding top: 5rem | padding bottom: 3rem */
  }

  .footer {
    row-gap: 3rem;
  }

  .footer-content {
    padding-bottom: 3rem;
  }

  .footer-data {
    column-gap: 4.5rem;
  }

  .footer-logo,
  .footer-title {
    margin-bottom: 2.5rem;
  }

  .footer-social {
    column-gap: 2rem;
  }
}

@media screen and (min-width: 1248px) {
  .main-container {
    grid-template-columns: 500px 600px;
    justify-content: initial;
  }

  .home-img {
    width: 600px;
  }
}

/* For resolutions 2048 x 1152, 2048 x 1536 */
@media screen and (min-width: 2000px) {
  .container {
    max-width: 1250px;
  }

  .main-container,
  .first-section-container,
  .second-section {
    justify-content: space-between;
  }
}
