:root {
  --first-color: #ae00ff;
  --first-color-alt: #ffffff;
  --title-color: #000000;
  --container-color: #000000;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url("../Portifólio_Thiago_arquivos/img/bg.jpg") center center / cover no-repeat fixed;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* ========== CONTAINER ========== */
.container {
  min-height: 100vh;
  padding: 80px 20px 20px 20px;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
header h1 {
  text-align: center;
  margin-bottom: 30px;
  opacity: 0; /* para GSAP animar */
}

/* ========== PROJETOS ========== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: transform 0.3s ease, background-color 0.3s, box-shadow 0.3s;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-card p {
  margin-top: 10px;
}

.project-card:hover {
  transform: scale(1.05);
  background-color: rgba(38, 0, 255, 0.06);
  box-shadow: 
    0 0 15px rgba(213, 2, 255, 0.17),
    0 0 30px rgba(0, 162, 255, 0.3);
}

/* ========== BOTÃO VOLTAR ========== */
.voltar-btn {
  display: block;
  margin: 80px auto 30px auto;
  opacity: 0;
  transform: translateY(50px);
  background-color: #0070f0;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s, box-shadow 0.3s;
}

.voltar-btn:hover {
  transform: scale(1.05);
  background-color: #05aaeb;
  box-shadow: 0 0 12px rgba(68, 0, 255, 0.5);
}

/* ========== FOOTER ========== */
footer {
  margin-top: 30px;
  padding-top: 20px;
  background-color: hsl(0, 0%, 3%);
  color: #ffffff;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__left {
  text-align: left;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

.footer__title span {
  color: #0070f0;
}

.footer__education {
  font-size: 1rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #05aaeb;
  padding: 0.5rem;
  color: hsl(186, 63%, 97%);;
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
  color: white;
}

.footer__right {
  text-align: right;
}

.footer__copy {
  font-size: 0.875rem;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__left,
  .footer__right {
    text-align: center;
  }
}

/* ========== Overlay dos cards ========== */

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.project-description {
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: center;
}

.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.3s ease;
  overflow: hidden; /* esconde overflow geral */
  text-align: center;
}

.scroll-content {
  max-height: 100%;
  overflow-y: auto;
  padding: 10px;
  position: relative;
  width: 100%;

  /* Oculta barra de rolagem nativa */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-content::-webkit-scrollbar {
  display: none;
}

/* EFEITO DE FUMAÇA/FADING NO TOPO E BASE */
.scroll-content::before,
.scroll-content::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
  z-index: 2;
}

.scroll-content::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.scroll-content::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.fixed-header .titulo {
  font-size: 1.5rem;
  margin: 0;
  opacity: 1 !important; /* evita conflito com GSAP --- muito importante NÃO REMOVER */
}
