html {
  scroll-behavior: smooth;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --header-bg: rgba(255, 255, 255, 0.55);
  --bg-main: #18b4ff;
  --bg-soft: #f6e7bc;
  --bg-soft-review: #dbe7ff;
  --bg-soft-dark: #12a0ed;
  --bg-dark: #0d79b3;
  --bg-card-dark: #0a98e4;
  --primary: #0992c2;
  --primary-transparent: rgba(9, 146, 194, 0.5);
  --secondary: #1cdcc9;
  --secondary-transparent: rgba(0, 255, 229, 0.35);
  --primary-dark: #066d91;
  --text-dark: #0d2233;
  --text-light: #ffffff;
  --border-soft: rgba(255, 255, 255, 0.35);
  --white: #ffff;
  --linear-2: rgba(13, 70, 97, 1);
  --value-backdrop: 1;
  --footer-1: rgba(13, 70, 97, 1);
  --footer-2: rgba(8, 34, 48, 1);
  --footer-3: rgba(13, 70, 97, 1);
  --max-content-width: 2400px;
}

body {
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  min-height: 100vh;
  color: var(--text-dark);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
body::-webkit-scrollbar {
  display: none;
}
header {
  z-index: 1;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  border-radius: 15px;
  padding: 1rem;
  width: min(85%, var(--max-content-width));
  background-color: var(--header-bg);
  display: flex;
  justify-content: space-between;
  backdrop-filter: blur(3px);
  transition: background 0.3s ease;
}

#menu {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

#dark-mode-toggle {
  display: none;
}

body:has(#dark-mode-toggle:checked) {
  --header-bg: rgba(49, 49, 62, 0.95);
  --bg-main: #0a1f2e;
  --bg-soft: #0d1419;
  --bg-soft-review: #0c1f2d;
  --bg-soft-dark: #0a3547;
  --bg-dark: #051520;
  --bg-card-dark: #0d3a50;
  --primary: #00bfff;
  --primary-transparent: rgba(0, 191, 255, 0.25);
  --secondary: #00e5cc;
  --secondary-transparent: rgba(0, 229, 204, 0.25);
  --primary-dark: #0096c9;
  --text-dark: #e0e0e0;
  --text-light: #0d0d15;
  --border-soft: rgba(255, 255, 255, 0.15);
  --white: #0a0a14;
  --value-backdrop: 0;
  --linear-2: rgba(13, 70, 97, 1);
  --footer-1: rgb(10, 48, 66);
  --footer-2: rgb(14, 34, 44);
  --footer-3: rgb(10, 48, 66);
}

.dark-mode-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: var(--bg-soft-review);
  transition: all 0.3s ease;
}
#menu .fa-moon {
  color: var(--text-dark);
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle:checked ~ #menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: var(--header-bg);
  border-radius: 15px;
  padding: 1.5rem;
  gap: 1.5rem;
  backdrop-filter: blur(3px);
}

.menu-toggle:checked ~ #menu nav ul {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

header #logo {
  display: flex;
  align-items: center;
}
#logo {
  cursor: default;
}
#logo span {
  color: var(--secondary);
}
.btn-3 {
  background: var(--primary-dark);
  border-radius: 15px;
  border: 0;
  width: 6rem;
  height: 3rem;
  transition: background 0.5s ease;
}
.btn-3 a {
  color: var(--text-light);
  transition: color 0.5s ease;
}

.btn-3:hover {
  cursor: pointer;
  background: var(--primary);
}
header ul {
  display: flex;
  align-items: center;
  text-align: center;
  list-style: none;
}
header ul li {
  font-size: 1.2rem;
  margin: 0 1rem;
}
header a {
  position: relative;
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.5s ease;
}
header nav a:hover {
  color: var(--bg-main);
}
nav a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  height: 2px;
  border-radius: 5px;
  width: 100%;
  background: var(--text-dark);
  transform: scaleX(0);
  transition: transform 0.25s linear;
}
nav a:hover::before {
  transform: scaleX(1);
  background: var(--bg-main);
}
#main {
  margin: 0 auto;
  height: auto;
  display: flex;
  padding: 3rem 0;
  justify-content: space-between;
}
.pagina-principal {
  margin: 20vh auto 0 auto;
  display: flex;
  width: min(85%, var(--max-content-width));
  justify-content: space-between;
}
.top-background {
  background: linear-gradient(to bottom, var(--bg-soft), var(--white) 90%);
}
.text-area {
  padding: 0.25rem;
  cursor: default;
  color: var(--text-dark);
  margin-top: 2.5rem;
  width: 40rem;
  transition: color 0.5s ease;
}
.text-area h1 {
  font-size: 4rem;
}
.text-area p {
  width: 95%;
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.7rem;
  font-weight: lighter;
}
.block {
  width: 350px;
  height: 450px;
  background: linear-gradient(
    to bottom,
    var(--bg-soft-review),
    rgba(255, 255, 255, 0)
  );
  border-radius: 15px;
}
.block img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.text-area .btn-1 {
  width: 12rem;
  height: 4rem;
  border: 0;
  margin-top: 1.5rem;
  border-radius: 20px;
  background: var(--primary);
  transition:
    background 0.5s ease,
    color 0.5s ease;
}
.btn-2 i {
  margin-left: 0.5rem;
}
.text-area .btn-1:hover {
  border: 3px solid var(--border-soft);
  background: var(--primary-transparent);
  cursor: pointer;
}
.btn-2:hover a,
.btn-1:hover a {
  color: var(--text-dark);
}

.text-area .btn-2 {
  width: 12rem;
  height: 4rem;
  border: 0;
  margin-top: 1.5rem;
  border-radius: 20px;
  background: var(--secondary);
  transition:
    background 0.5s ease,
    color 0.3s ease;
}
.btn-2:hover {
  border: 3px solid var(--border-soft);
  background: var(--secondary-transparent);
  cursor: pointer;
}
.text-area .btn-1,
.text-area .btn-2 {
  transition:
    background 0.5s ease,
    color 0.3s ease;
}
.text-area a {
  text-decoration: none;
  color: var(--white);
  font-size: large;
  transition: color 0.3s ease;
}
.text-area span {
  color: var(--secondary);
}
.buttons {
  display: flex;
  gap: 1.5rem;
}
#wave img {
  width: 100%;
  height: 50vh;
  max-height: 800px;
  background: var(--white);
  padding: 0;
  margin: 0;
}

#wave .wave-light {
  display: block;
}

#wave .wave-dark {
  display: none;
}

body:has(#dark-mode-toggle:checked) #wave .wave-light {
  display: none;
}
body:has(#dark-mode-toggle:checked) #wave .wave-dark {
  display: block;
}

.carousel {
  margin: 0 auto;
  width: min(100%, var(--max-content-width));
  display: flex;
  overflow: clip;
  background-color: var(--white);
}
.carousel::-webkit-scrollbar {
  display: none;
}
.slide {
  filter: grayscale(var(--value-backdrop));
  scale: 0.65;
  flex: 0 0 5em;
  height: 10rem;
  text-align: center;
  align-content: center;
  align-items: center;
  transition:
    scale 0.3s ease-out,
    filter 0.5s;
}
.slide:hover {
  scale: 0.7;
  filter: grayscale(0);
}
.group {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 10s linear infinite;
}

#cards {
  display: flex;
  margin: 0 auto;
  width: min(100%, var(--max-content-width));
  justify-content: space-between;
}
.card {
  cursor: pointer;
  display: flex;
  justify-content: space-around;
  border-radius: 15px;
  width: 25vw;
  align-items: center;
  height: 10vh;
  padding: 1rem;
  background: var(--bg-card-dark);
  transition: background 0.25s;
}
.card a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.75rem;
  transition: color 0.5s ease;
}
.card:hover {
  background: var(--primary-dark);
}
#about-us {
  width: 100%;
  background: var(--bg-main);
  display: flex;
  justify-content: space-between;
  align-items: normal;
  flex-direction: column;
  padding: 3rem 7.5%;
  scroll-margin-top: 100px;
}

.presentation {
  margin: 0 auto;
  width: min(100%, var(--max-content-width));
  margin-bottom: 12vh;
  display: flex;
  background: var(--bg-soft-dark);
  padding: 32px;
  border-radius: 12px;
  color: var(--text-dark);
  justify-content: space-between;
  align-items: center;
  transition: color 0.5s ease;
}
#statistics p {
  font-size: 1.2rem;
}

#statistics ul,
#statistics li {
  list-style-type: none;
  font-size: 1.25rem;
  line-height: 1.85rem;
}

#statistics {
  width: 35%;
  flex-direction: column;
}
.presentation span {
  color: var(--secondary);
}
.motivational {
  max-width: 35%;
}
.motivational h1 {
  font-size: 3.8rem;
}
.motivational p {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}
.student img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 0 0 1rem;
}
.student {
  margin: 0 auto;
  width: min(100%, var(--max-content-width));
  display: flex;
  align-items: center;
  border-radius: 4rem;
  padding: 12px;
  background: var(--bg-dark);
  margin-bottom: 20px;
}
.review {
  align-items: center;
  display: flex;
  padding: 6px;
  border-radius: 3.5rem;
  background: var(--bg-soft-review);
}
.review span {
  margin: 1rem 0 0 4rem;
  width: 80%;
  font-size: 1.3rem;
  transition: color 0.5s ease;
}
#students-rating {
  width: 100%;
  background: #0d4661;
  background: linear-gradient(0deg, var(--footer-1) 0%, var(--bg-main) 100%);
  justify-content: space-between;
  align-items: normal;
  flex-direction: column;
  padding: 3rem 7.5%;
}
#students-rating .fa-solid {
  color: gold;
}
.back-footer {
  display: flex;
  justify-content: center;
  background: linear-gradient(0deg, var(--footer-2) 50%, var(--footer-3) 100%);
  margin: 0 auto;
}
footer {
  color: var(--text-dark);
  padding-top: 2rem;
  background: #082230;
  background: linear-gradient(0deg, var(--footer-2) 50%, var(--footer-3) 100%);
  height: auto;
  width: min(85%, var(--max-content-width));
  display: flex;
}
.footer-middle a {
  color: #ffff;
  list-style: none;
  text-decoration: none;
  font-size: 2rem;
  transition: color 0.5s ease;
}
.footer-middle ul {
  line-height: 3.5rem;
  list-style: none;
}
.footer-left {
  width: 50%;
  padding: 2rem;
}
.footer-right button {
  padding: 0.3rem;
  width: 50%;
  font-size: 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  background-color: var(--text-light);
  color: var(--text-dark);
  border-radius: 10px;
}
.footer-left a {
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.5s ease;
}
.footer-left button {
  background: var(--text-light);
}
.footer-middle,
.footer-right {
  width: 25%;
}

.footer-left,
.footer-middle,
.footer-right {
  color: #ffff;
}
.footer-right {
  padding: 2rem;
}
.footer-middle {
  padding: 2rem 0 2rem 0;
}
.footer-middle a:hover {
  color: var(--secondary);
}
.footer-right input {
  margin-top: 1rem;
  height: 3rem;
  border-radius: 10px;
  width: 95%;
  padding: 1rem;
  font-size: 1rem;
  background-color: var(--text-light);
}
.footer-left button {
  margin-top: 0.5rem;
  width: 20%;
  height: 15%;
  cursor: pointer;
  border-radius: 10px;
  border: 0;
}
.footer-left button:hover a {
  color: var(--text-light);
}
.footer-left button:hover {
  background: var(--primary-dark);
}
.footer-left h2 {
  font-size: 1.5rem;
  width: 70%;
}
footer span {
  color: var(--secondary);
}
@keyframes spin {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@media screen and (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  header {
    padding: 1rem;
    flex-direction: row;
    align-items: center;
    width: 90%;
    justify-content: space-between;
  }

  header #menu {
    display: none;
    line-height: 2rem;
    flex-direction: column;
  }

  header #menu nav ul {
    line-height: 2rem;
    flex-direction: column;
  }
  #cards {
    flex-direction: column;
    width: 100%;
  }
  .card {
    font-size: 0.75rem;
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
  }
  #main {
    text-align: center;
    width: 90%;
    padding: 0;
    flex-direction: column;
    align-items: center;
  }
  .text-area {
    width: 100%;
  }
  .text-area h1 {
    margin-top: 2rem;
    font-size: 2.8rem;
  }
  .text-area p {
    font-size: 1.2rem;
    font-weight: lighter;
  }
  .block {
    display: none;
  }
  .buttons {
    align-items: center;
  }
  .carousel {
    padding-top: 2rem;
  }
  .group {
    animation: spin 5s linear infinite;
  }
  .slide {
    width: 22rem;
  }
  .slide img {
    scale: 0.5;
  }
  .presentation {
    text-align: center;
    flex-direction: column;
  }
  .presentation .motivational {
    max-width: 100%;
  }
  .motivational h1 {
    font-size: 2.5rem;
  }
  .presentation img {
    display: none;
  }
  #statistics {
    margin-top: 1.5rem;
    width: 80%;
  }
  .review {
    display: flex;
    flex-direction: column;
  }
  .review span {
    margin: 0.8rem;
    width: 100%;
  }
  #students-rating .fa-solid {
    color: gold;
    font-size: 1.5rem;
  }
  footer {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    text-align: center;
  }
  .footer-left,
  .footer-right,
  .footer-left p {
    text-align: center;
    width: 100%;
  }
  .footer-left button,
  .footer-right button {
    padding: 0.3rem;
    width: 50%;
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  .footer-left h2 {
    margin: 0 auto;
  }
  .footer-middle {
    display: none;
  }
  .dark-mode-label {
    margin-left: 0;
  }
}
