@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/Montserrat-Medium.otf");
}
@font-face {
  font-family: Pixeloid;
  src: url("../assets/fonts/PixeloidSansBold-PKnYd.ttf");
}
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-VariableFont_slnt,wght.ttf");
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #292827;
  font-family: Montserrat, "IBM Plex Sans Condensed", sans-serif;
}

#page-content {
  flex: 1 0 auto;
  transition: opacity 150ms ease;
}
#page-content > :last-child {
  padding-bottom: 7.5rem;
}

#page-content.htmx-swapping {
  opacity: 0;
}

#page-content.htmx-request {
  opacity: 0;
}
@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 1.2vmax;
  }
}
@media (min-width: 1920px) {
  html {
    font-size: 1.1vmax;
  }
}

#page-content .container {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}
@media (min-width: 768px) {
  #page-content .container {
    width: min(100% - 8rem, 70rem);
  }
}
.desktop-nav {
  min-height: 4rem;
  box-shadow: 0 3px 5px rgba(57, 63, 72, 0.3);
}
.desktop-nav img {
  transition: ease-out 0.2s;
}
.desktop-nav img:hover {
  transform: scale(1.02);
}
.mobile-menu {
  display: none;
}
.menu-button {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(57, 63, 72, 0.5);
  font-size: 1.5rem;
}
.menu-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 7rem;
  background: #ff690a;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transition: all 0.2s ease-in-out;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.menu-overlay a {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1rem 2rem;
}
@media (max-width: 760px) {
  .desktop-nav.desktop-nav {
    display: none;
  }
  .mobile-menu.mobile-menu {
    display: block;
  }
  footer .footer-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.75rem 0.35rem 0.25rem;
  }
  #header {
    justify-content: flex-start;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  #header > div:first-child {
    flex: 0 0 18rem;
    min-height: 18rem;
  }
  #header .hero-logo {
    top: 50%;
    left: 50%;
    width: min(80vw, 18rem);
    transform: translate(-50%, -50%);
  }
  #header > div:nth-child(2) {
    flex: 0 0 auto;
    position: relative;
    z-index: 11;
  }
}

.header-butanta {
  background-image: linear-gradient(#ff8b46, #ff690a);
}
.header-icmc {
  background-image: linear-gradient(#99daca, #5ec8ae);
}
.header-each {
  background-image: linear-gradient(#ea7bc5, #e23caa);
}
.header-pride {
  background: linear-gradient(
    225deg,
    red,
    orange,
    #d0de21,
    #4fda4a,
    #3fd8d8,
    #2fc9e2,
    #1c7fee,
    #5f15f2,
    #ba0cf8,
    #fb07d9
  );
}
.hero-logo {
  position: absolute;
  width: min(80%, 28rem);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
}
.hero-logo.is-current {
  opacity: 1;
  z-index: 10;
}
.secret-trigger {
  position: absolute;
  right: 1%;
  bottom: 0;
  border: 0;
  color: white;
  background: transparent;
  opacity: 0;
  font-size: 2rem;
  cursor: pointer;
}
.secret-trigger:hover {
  opacity: 1;
}
.secret-modal {
  position: fixed;
  z-index: 99;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}
.secret-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.secret-modal img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 0.5rem;
}
.secret-close {
  position: absolute;
  margin: 0.6rem 0 0 -2.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  color: white;
  background: #ff690a;
  cursor: pointer;
}
.typewriter {
  color: white;
}
.reveal {
  opacity: 0;
  transform: translateY(20%);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

.project-header {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(#ff8b46, #ff6900);
  display: grid;
  place-items: center;
}
.project-header h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 8vw, 7rem);
}
.bubble {
  position: absolute;
  bottom: -5%;
  display: block;
  border-radius: 50%;
  animation: rise 12s linear infinite;
}
.project-bubble {
  background: #ffb78b;
  cursor: pointer;
}
.bubble-menu {
  background: rgba(255, 105, 10, 0.1);
}
.pop {
  transform: scale(0);
}
#waves {
  position: absolute;
  bottom: 0;
  width: 100vw;
  pointer-events: none;
}

#waves .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url("../assets/wave.webp");
  background-repeat: repeat-x;
  background-size: 1000px 100px;
  will-change: background-position-x;
  filter: brightness(0) invert(100%) sepia(4%) saturate(1431%)
    hue-rotate(172deg) brightness(100%) contrast(97%);
}

#waves .wave.wave-one {
  z-index: 44;
  animation: wave-one 30s linear infinite;
}

#waves .wave.wave-two {
  z-index: 43;
  bottom: 10px;
  opacity: 0.5;
  animation: wave-two 15s -5s linear infinite;
}

#waves .wave.wave-three {
  z-index: 42;
  bottom: 15px;
  opacity: 0.2;
  animation: wave-one 30s -2s linear infinite;
}

#waves .wave.wave-four {
  z-index: 41;
  bottom: 20px;
  opacity: 0.7;
  animation: wave-two 5s -5s linear infinite;
}

@keyframes wave-one {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 1000px;
  }
}

@keyframes wave-two {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -1000px;
  }
}

@keyframes rise {
  from {
    bottom: -5%;
  }
  to {
    bottom: 120%;
  }
}
.journey {
  background-image: linear-gradient(#f8f9fa, #ffddc6);
}
.journey #journey-bubbles {
  z-index: 1;
}
.journey > .container {
  z-index: 2;
}
.bubble-menu {
  z-index: 1;
}
.road {
  display: none;
}
@media (min-width: 768px) {
  .road {
    display: block;
    position: relative;
    height: 14vw;
    margin: -7vw 0;
    pointer-events: none;
  }
  .road span {
    position: absolute;
    width: 5rem;
    height: 2rem;
    background: #ff690a;
    border-radius: 2rem;
  }
  .road:not(.reverse) span:nth-child(1) {
    top: 0;
    left: 26vw;
    transform: rotate(38deg);
  }
  .road:not(.reverse) span:nth-child(2) {
    top: 7vw;
    left: 36vw;
    transform: rotate(32deg);
  }
  .road:not(.reverse) span:nth-child(3) {
    top: 14vw;
    left: 46vw;
    transform: rotate(31deg);
  }
  .road.reverse span:nth-child(1) {
    top: -6vw;
    left: 41vw;
    transform: rotate(135deg);
  }
  .road.reverse span:nth-child(2) {
    top: 2vw;
    left: 33vw;
    transform: rotate(132deg);
  }
  .road.reverse span:nth-child(3) {
    top: 10vw;
    left: 26vw;
    transform: rotate(126deg);
  }
}
@media (min-width: 1200px) {
  .road:not(.reverse) span:nth-child(1) {
    top: 0;
    left: 31vw;
    transform: rotate(52deg);
  }
  .road:not(.reverse) span:nth-child(2) {
    top: 7vw;
    left: 37vw;
    transform: rotate(48deg);
  }
  .road:not(.reverse) span:nth-child(3) {
    top: 14vw;
    left: 43vw;
    transform: rotate(46deg);
  }
  .road.reverse span:nth-child(1) {
    top: -6vw;
    left: 39vw;
    transform: rotate(140deg);
  }
  .road.reverse span:nth-child(2) {
    top: 2vw;
    left: 33vw;
    transform: rotate(131deg);
  }
  .road.reverse span:nth-child(3) {
    top: 10vw;
    left: 28vw;
    transform: rotate(123deg);
  }
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.button-default {
  background: #ff690a;
  color: #fff;
}
.button-default:hover {
  background: #ca4e00;
}
.button-outline {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: none;
}

.members-hero {
  padding: 9rem 1.5rem 5.5rem;
  color: #fff;
  background: linear-gradient(135deg, #ff883e, #ff690a 55%, #ef5900);
  text-align: center;
}
.members-hero .container { max-width: 46rem; }
.members-kicker, .members-eyebrow {
  margin: 0 0 .65rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.members-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 100;
  line-height: 1;
}
.members-hero p:last-child {
  max-width: 35rem;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.members-section { padding: 5rem 1.5rem; }
.members-section--past { background: #fff0e5; }
.members-section-heading {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.members-section-heading h2 {
  margin: 0;
  color: #292827;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 100;
  line-height: 1.1;
}
.members-eyebrow { color: #ff690a; }
.members-heading-line { flex: 1; height: 2px; margin-bottom: .45rem; background: #ff690a; opacity: .35; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 12rem)); justify-content: center; gap: 1.5rem; }
.member-card {
  padding: 1.25rem 1rem 1rem;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.6rem rgba(41, 40, 39, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.member-card:hover { transform: translateY(-.3rem); box-shadow: 0 .85rem 2rem rgba(41, 40, 39, .16); }
.member-photo { width: 7.5rem; height: 7.5rem; margin: 0 auto 1rem; object-fit: cover; background: #ffd4ba; border: .25rem solid #ffe2cf; border-radius: 50%; }
.member-card-content { display: grid; gap: .7rem; justify-items: center; text-align: center; }
.member-card h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.member-role { margin: -.35rem 0 0; color: #ff690a; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.member-socials { display: flex; gap: .25rem; }
.member-social-link { display: grid; width: 2rem; height: 2rem; color: #666361; place-items: center; border-radius: 50%; transition: color .15s, background .15s; }
.member-social-link:hover, .member-social-link:focus-visible { color: #ff690a; background: #ffe2cf; outline: none; }
.member-simple-icon { display: grid; width: 1rem; height: 1rem; place-items: center; }
.member-simple-icon img { width: 100%; height: 100%; }
.members-empty { grid-column: 1 / -1; margin: 0; padding: 2rem; color: #666361; border: 2px dashed #ffb782; border-radius: .75rem; text-align: center; }
@media (min-width: 768px) { .members-hero { padding-top: 10rem; } .members-section { padding: 6rem 0; } }
.hero-image {
  position: relative;
  min-height: 500px;
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.hero-image > * {
  position: relative;
  z-index: 1;
}
.bits-image {
  border-radius: 20px;
  box-shadow:
    #ff6900 -10px 10px,
    rgba(149, 157, 165, 0.2) 0 8px 24px;
  transition: 0.05s;
}
.bits-image:hover,
.tech-image:hover {
  transform: scale(1.02);
}
.simple-icon-slot {
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  margin-right: 0.3rem;
  border-radius: 0.25rem;
  background: #f1f1f1;
  color: #666361;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: -0.1rem;
}
.simple-icon-slot img {
  width: 100%;
  height: 100%;
}
.course-tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 46rem;
  padding-bottom: 4rem;
}
.course-tech {
  display: flex;
  width: 3.5rem;
  flex-direction: column;
  align-items: center;
  margin-bottom: -2.65rem;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  position: relative;

  transition: transform 0.2s ease, color 0.2s ease, z-index 0s;
  z-index: 1;
}

.course-tech:hover {
  transform: scale(1.25);
  color: var(--icon-color);
  z-index: 100;
}

/* Garante que o span interno herde a cor corretamente */
.course-tech .simple-icon-slot {
  color: inherit; 
}



/* Cria o balão de texto escondido por padrão */
.course-tech::after {
  content: attr(aria-label); /* PEGA O TEXTO DO ARIA-LABEL AUTOMATICAMENTE */
  position: absolute;
  bottom: 110%; /* POSICIONA ACIMA DO ÍCONE */
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937; /* COR DE FUNDO ESCURA estilo TOOLTIP */
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0; /* ESCONDE O TEXTO */
  pointer-events: none;
  transition: opacity 0.2s ease; /* SUAVIZA A APARIÇÃO */
  font-size: 0.7rem;
}

/* Mostra o texto quando o mouse passa por cima */
.course-tech:hover::after {
  opacity: 1;
}

.course-tech:nth-child(even) {
  margin-top: 2.65rem;
}
.course-tech .simple-icon-slot {
  width: 4.5rem;
  height: 5.2rem;
  margin: 0;
  border-radius: 0;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  background: var(--icon-color);
  color: #fff;
  font-size: 1rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0.45rem 0.35rem rgba(41, 40, 39, 0.25));
}
.course-tech .simple-icon-slot img {
  width: 58%;
  height: 58%;
  filter: brightness(0) invert(1);
}
@media (max-width: 600px) {
  .course-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 4.5rem);
    grid-auto-rows: auto;
    gap: 1rem 0.75rem;
    justify-content: center;
    padding-bottom: 2rem;
  }
  .course-tech,
  .course-tech:nth-child(even) {
    width: 4.5rem;
    margin-top: 0;
    margin-bottom: 0;
  }
  .course-tech .simple-icon-slot {
    width: 4.5rem;
    height: 5.2rem;
  }
}
@media (hover: none) {
  .course-tech:hover {
    color: #4b5563;
    transform: none;
  }
  .course-tech:hover::after {
    opacity: 0;
  }
}
#projects li {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.875rem;
}
.footer-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f8f9fa;
  color: #292827;
  text-decoration: none;
  margin: 0.25rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.footer-icon svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}
.footer-icon--github { color: #6e7681; }
.footer-icon--gitlab { color: #fc6d26; }
.footer-icon--telegram { color: #229ed9; }
.footer-icon--email { color: #ea4335; }
.footer-icon--youtube { color: #ff0000; }
.footer-icon--instagram { color: #e4405f; }
.footer-icon:hover {
  background: #ff690a;
  color: #fff;
  transform: translateY(-0.2rem) scale(1.08);
}
.footer-icon:focus-visible {
  background: #ff690a;
  color: #fff;
  outline: 2px solid #f8f9fa;
  outline-offset: 2px;
  transform: translateY(-0.2rem) scale(1.08);
}
