:root {
  --primary-color: #5252cc;
  --bg: #ffffff;
  --secundary-color: linear-gradient(135deg, #5252cc 60%, #a6ffcb 100%);
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  text-align: center;
  transition: 0.2s linear;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-padding-top: 120px; 
  scroll-behavior: smooth;
}

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

header {
  position: sticky;
  background: var(--secundary-color);
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.header section {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  justify-content: space-between;
}

section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

span {
  color: var(--primary-color);
}

.logo-title {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo img {
  border-radius: 100%;
}

h1 {
  color: var(--bg);
  font-size: 1rem;
  text-align: left;
}

.navbar a {    
  color: var(--bg);
  margin: 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.navbar a:hover {
  color: var(--bg);
  border-bottom: 0.1rem solid var(--bg);
  font-size: 1.2rem;
}

.Apresentation {
  display:flex
}

.text-apresentation h1 {
  color: var(--black);
  margin-top: -2rem;
  font-size: 3rem;
}

.text-apresentation p {
  font-size: 1.3rem;
  text-align: left;
}

.uespi-img {
  margin: 0 1rem;
  margin-top: 3.5rem;
  width: 600px;
  height: 500px;
}

.Themes .items-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 4fr));
  gap: 1rem;
}

.Themes h2 {
  color: var(--black);
  margin-bottom: 2rem;
  font-size: 2.7rem;
}

.Themes .item {
  background-color: var(--bg);
  padding: 2rem;
  border-top: 5px solid var(--primary-color);
  border-radius: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.Themes .item:hover {
  transform: translateY(-5px) scale(1.05);
}

.Themes .item img {
  margin-bottom: 1rem;
  width: 100%; 
  height: 150px; 
  border-radius: 7px;
}

.item h3 {
  margin-top: 1rem;
  text-transform: uppercase;
}

.item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: capitalize;
}

.Projects {
  background: var(--secundary-color);
  margin-bottom: 2rem;
  padding: 3rem 1rem 2rem 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-radius: 1.5rem;
}

.Projects h2 {
  color: var(--bg);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  font-size: 2.7rem;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.25);
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  display: flex;
  background: var(--bg);
  width: 17rem;
  min-height: 16rem;
  max-height: 16rem;
  flex-direction: column;
  padding: 2rem 1.2rem;
  border-radius: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, max-height 0.5s;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  max-height: 600px;
  box-shadow: 0 8px 32px 0 rgba(79, 140, 255, 0.25);
  transform: translateY(-8px) scale(1.04);
}

.project-card h3 {
  color: var(--black);
  margin-bottom: 1rem;
  font-size: 1.7rem;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(166,255,203,0.15);
}

.project-card p {
  margin-bottom: 0.7rem;
  font-size: 1.40rem;
  text-align: left;
  line-height: 1.6;
}

.project-card p strong {
  color: var(--primary-color);
}

.SignUp h2 {
  display: flex;
  color: var(--black);
  justify-content: center;
  font-size: 2.7rem;
}

.form-container {
  display: flex;
  background: var(--bg);
  border: 4px solid var(--primary-color);
  max-width: 600px; 
  margin: 1rem auto;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgb(0, 0, 0);
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.form-container label {
  font-size: 1.5rem;
  font-weight: 800;
  }

input {
  background-color: var(--bg);
  width: 80%;
  height: 4rem;
  border: 3px solid var(--primary-color);
  border-radius: 1rem;
  font-size: 1.2rem;
  }

#thematic-line{
  width: 80%;
  height: 3rem;
  border-radius: 1rem;
  border: 3px solid var(--primary-color);
  font-size: 1rem;
}

option {
  font-size: 1rem;
}

.form-button{
  display: flex;
  width: 90%;
  margin-top: 1rem;
  align-items: center;
  justify-content: space-around;
}

.form-button button {
  background-color: var(--primary-color);
  color: var(--bg);
  padding: 1.2rem 5rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.form-button button:hover {
  background: none;
  color: var(--primary-color);
  border: var(--primary-color);
  outline: 3px solid var(--primary-color);
}

.text-area {
  width: 70%;
  height: 2rem;
  padding: 1.8rem;
  border: 3px solid var(--primary-color);
  font-size: 1.4rem;
  border-radius: 1.5rem;
}

footer {
  display: flex;
  background: var(--secundary-color);
  color: white;
  min-height: 7rem;
  padding: 1rem;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid rgba(0, 0, 0, 0.129);
  overflow: hidden;
  flex-grow: 1;
}

footer .titles, footer .footer-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  align-items: start;
  text-align: center;
  flex-grow: 1;
}

.titles h4 {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.5rem;
  text-align: center;
}

.contacts, .social-media, .developers {
  display: flex;
  padding: 0;
  margin: 0.5rem 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.contacts {
  margin: 0;
}

.contacts .row-1 {
  display: flex;
  width: 100%;
  flex-direction: row;
  overflow: hidden;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.contacts .row-2 p{
  white-space: nowrap;
  text-overflow: hidden;
}

.row-1 .email {
  color: var(--bg);
}

.social-media, .developers {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 1rem;
  padding: 0;
}

.social-media {
  margin-left: 3rem;
  transform: translateX(-1rem);
}

.social-media a img {
  opacity: 0.8;
}

.social-media a img:hover {
  transform:translateY(-2px);
  opacity: 1;
}

.social-media .site-link img {
  border-radius: 50%;
}


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

    section {
        padding: 2rem; 
    }

    .Apresentation {
        align-items: center;
        gap: 2rem;
        flex-direction: column;
    }

    .uespi-img {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin-top: 1rem;
    }

    .text-apresentation h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .text-apresentation p {
        text-align: justify;
    }

    .form-container {
        width: 90%;
    }

    footer .footer-items {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
  }

  .footer-items .block {
      margin-bottom: 1rem;
  }

  .footer-items h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {

    html {
      scroll-padding-top: 150px;
    }

    header {
      position: sticky;
      background: var(--secundary-color);
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }

    .header section {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      padding-top: 1rem;
      padding-bottom: 1rem;
    }

    h1 {
      color: var(--bg);
      font-size: 1.2rem;
      text-align: center;
      line-height: 1.4;
    }

    .navbar a {
      color: var(--bg);
      margin: 0 0.5rem;
      font-size: 0.8rem;
      font-weight: 900;
      padding-bottom: 10px;
      position: relative;
    }

    .navbar a:hover {
      color: var(--bg);
      border-bottom: 0.1rem solid var(--bg);
      font-size: 0.9rem;
    }

    .uespi-img {
      margin-top: 3.5rem;
      width: 90%;
      margin-top: -2rem;
    }

    .Themes h2, .Projects h2, .SignUp h2 {
      font-size: 2.2rem;
    }

    .Themes .item img {
      height: 200px; 
    }

    .project-card {
      width: 80%;
      min-height: auto;
      max-height: none;
    }

    .project-card:hover {
      transform: translateY(-5px);
      max-height: none;
    }

    .form-container {
      height: 50%;
      width: 80%;
    }

    input {
      font-size: 1rem;
    }

    .form-button {
      flex-direction: column;
      gap: 1rem;
      width: 90%;
    }

    .form-button button {
      width: 90%;
      padding: 1rem;
    }
    
     #thematic-line {
      font-size: 1rem;
      height: auto;
      padding: 1rem;
      width: 83%;
    }

     .text-area {
      width: 65%;
     }

     .social-media a img {
      margin-top: 0.5rem;
    }

    footer {
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
    }

    .row-1, .row-2 {
      margin-top: 0.5rem;
    }
}
