@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 3.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

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

.nav-back {
  font-size: 1.7rem;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-back:hover {
  color: var(--main-color);
}

.nav-back i {
  font-size: 1.8rem;
}

.hero-section {
  margin-top: 10rem;
  padding: 4rem 9% 2rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section h1 span {
  color: var(--main-color);
}

.hero-section p {
  font-size: 1.8rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 3rem;
}

.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem 9%;
  width: 100%;
  box-sizing: border-box;
}

.professor-info {
  background: var(--second-bg-color);
  padding: 3rem;
  border-radius: 2rem;
  margin-bottom: 3rem;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
}

.professor-info:hover {
  border-color: var(--main-color);
}

.professor-info h2 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.professor-info h2 i {
  font-size: 2.6rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-item {
  font-size: 1.6rem;
  line-height: 1.8;
}

.info-item strong {
  color: var(--main-color);
  font-weight: 600;
}

.info-item a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.3s;
  word-break: break-word;
  display: inline-block;
}

.info-item a:hover {
  text-decoration: underline;
}

.info-item strong {
  display: block;
  margin-bottom: 0.5rem;
}

.materias {
  margin-top: 2rem;
}

.materias h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--main-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.materias-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  align-items: stretch;
}

.materia-item {
  background: var(--second-bg-color);
  border: 0.2rem solid var(--bg-color);
  border-radius: 2rem;
  padding: 2.5rem;
  transition: 0.5s ease;
  cursor: pointer;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
}

.materia-item:hover {
  border-color: var(--main-color);
  transform: translateY(-0.5rem);
}

.materia-item h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.materia-item i {
  font-size: 2.5rem;
  color: var(--main-color);
}

.materia-item p {
  font-size: 1.4rem;
  margin: 0.8rem 0;
  color: var(--text-color);
  opacity: 0.8;
}

.materia-item a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  height: 100%;
  width: 100%;
  outline: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.materias-list li a {
  display: block;
  width: 100%;
  height: 100%;
}

.materia-item a:link,
.materia-item a:visited,
.materia-item a:hover,
.materia-item a:active,
.materia-item a:focus {
  text-decoration: none !important;
  color: inherit !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.materia-item a * {
  text-decoration: none !important;
  color: inherit !important;
}

.materia-item a h3,
.materia-item a p,
.materia-item a strong {
  text-decoration: none !important;
  color: inherit !important;
}

.materias-list li {
  display: flex;
  height: 100%;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;
  color: var(--text-color);
  opacity: 0.8;
}

.badge {
  display: inline-block;
  background: var(--main-color);
  color: var(--bg-color);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 1.8rem 4%;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 3rem;
  }

  .nav-back {
    font-size: 1.6rem;
  }

  .container,
  .hero-section {
    padding: 2rem 4%;
  }

  .hero-section {
    margin-top: 9rem;
  }

  .footer {
    padding: 2rem 4%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 5%;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: space-between;
  }

  .logo {
    font-size: 2.5rem;
    flex-shrink: 0;
  }

  .nav-back {
    font-size: 1.5rem;
    flex-shrink: 0;
  }
  
  .nav-back span {
    display: none;
  }
  
  .nav-back i {
    font-size: 2.2rem;
  }

  .hero-section {
    margin-top: 8rem;
    padding: 2rem 5% 1rem;
  }

  .hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .container {
    padding: 1rem 5%;
    margin: 2rem auto;
  }

  .professor-info {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }

  .professor-info h2 {
    font-size: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .materias h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .materias-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .materia-item {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }

  .materia-item h3 {
    font-size: 1.8rem;
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .materia-item i {
    font-size: 2rem;
  }

  .materia-item p {
    font-size: 1.3rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-item {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 0.8rem 0;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .header {
    padding: 1.2rem 4%;
  }

  .logo {
    font-size: 2.2rem;
  }

  .nav-back {
    font-size: 1.4rem;
  }

  .nav-back i {
    font-size: 1.6rem;
  }

  .hero-section {
    margin-top: 7rem;
    padding: 1.5rem 4% 1rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .hero-section p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .container {
    padding: 1rem 4%;
    margin: 1.5rem auto;
  }

  .professor-info {
    padding: 1.5rem 1.2rem;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
  }

  .professor-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .professor-info h2 i {
    font-size: 1.8rem;
  }

  .info-grid {
    gap: 1.2rem;
  }

  .info-item {
    font-size: 1.3rem;
    padding: 0.8rem 0;
    line-height: 1.7;
  }

  .materias {
    margin-top: 1.5rem;
  }

  .materias h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .materias-list {
    gap: 1.2rem;
  }


  .materia-item {
    padding: 1.5rem 1.2rem;
    border-radius: 1.2rem;
  }

  .materia-item:hover {
    transform: translateY(-0.3rem);
  }

  .materia-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .materia-item i {
    font-size: 1.8rem;
  }

  .materia-item p {
    font-size: 1.2rem;
    margin: 0.6rem 0;
  }

  .footer {
    padding: 1.5rem 4%;
  }
}

@media (max-width: 365px) {
  .header {
    padding: 1rem 3%;
  }

  .logo {
    font-size: 2rem;
  }

  .nav-back {
    font-size: 1.3rem;
  }
  
  .nav-back span {
    display: none;
  }
  
  .nav-back i {
    font-size: 1.8rem;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1.3rem;
  }

  .container {
    padding: 1rem 3%;
  }

  .professor-info {
    padding: 1.2rem 1rem;
  }

  .professor-info h2 {
    font-size: 1.6rem;
  }

  .materias h2 {
    font-size: 1.8rem;
  }

  .materia-item {
    padding: 1.2rem 1rem;
  }

  .materia-item h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer {
    flex-direction: column-reverse;
    padding: 1.2rem 3%;
  }

  .footer p {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
  }
}

