@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", Arial, sans-serif;
}

body {
  background: url("Img/backgroundBrabo.png") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  color: #eee;
  margin: 0;
  cursor: default;
}

body,
.container,
.main-text,
.quadro,
.skills-grid,
.skill-item,
.skill-item img,
.skill-item span {
  user-select: none;
  -webkit-user-select: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 36, 36, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.profile-photo {
  display: inline-block;
  margin-right: 64px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #eee5da;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.container {
  margin-top: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.profile-photo {
  order: 2;
  margin-right: 0;
  margin-left: 48px;
  box-shadow: 0 6px 34px rgba(0, 0, 0, 0.5);
}

.main-text {
  order: 1;
  text-align: left;
}

.section-light {
  background: rgba(28, 28, 28, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 64px 0;
  min-height: 80vh;
  margin-top: 700px;
  width: 100vw;
  box-sizing: border-box;
}

.quadro {
  background: #eae6e0;
  color: #1c1c1c;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 260px;
  box-sizing: border-box;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
}

.quadro h2 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  margin-bottom: 16px;
  height: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: center;
  width: 100%;
  margin-top: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.skill-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 8px;
}

.skill-item span {
  font-size: 0.95em;
  color: #1c1c1c;
  text-align: center;
}

.section-content,
.section-flex {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0;
  box-sizing: border-box;
  gap: 0;
}

.sobre-mim.quadro {
  margin-left: 32px;
  margin-right: 12px;
  flex: 0 1 76%;
  box-sizing: border-box;
}

.minhas-capacidades.quadro {
  margin-left: 12px;
  margin-right: 32px;
  flex: 0 1 24%;
  box-sizing: border-box;
}

.skill-item img:hover {
  transform: scale(1.08);
  transition: 0.2s;
}

.skill-item img:active {
  transform: scale(0.95);
  transition: 0.1s;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #eae6e0;
  color: #1c1c1c;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 32px 24px;
  z-index: 2001;
  min-width: 240px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2em;
  color: #1c1c1c;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.popup,
.popup-content,
#popup-text {
  user-select: text;
  -webkit-user-select: text;
}

#popup-text:hover {
  cursor: text;
}

.sobre-mim.quadro,
.minhas-capacidades.quadro {
  background: rgba(234, 230, 224, 0.4);
  color: #1c1c1c;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 260px;
  box-sizing: border-box;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 535px;
  height: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sobre-mim.quadro p {
  font-size: 1.25em;
  line-height: 1.7;
}

.sobre-mim.quadro h2 {
  font-size: 1.9em;
  line-height: 1.7;
}

.minhas-capacidades.quadro h2 {
  font-size: 1.9em;
  line-height: 1.7;
}

.minhas-capacidades.quadro span {
  font-size: 1.25em;
  line-height: 1.7;
}

.projetos-destaque.quadro {
  background: rgba(234, 230, 224, 0.4);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 24px;
  margin: 32px auto 0 auto;
  max-width: 700px;
  width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projetos-destaque h2 {
  font-size: 1.8em;
  margin-bottom: 24px;
  color: #1c1c1c;
}

.projetos-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.projeto-item {
  flex: 1 1 260px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projeto-item a {
  text-decoration: none;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px;
  height: 100%;
}

.projeto-thumb {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.projeto-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.15em;
  text-align: center;
}

.projeto-item p {
  margin: 0;
  font-size: 1em;
  color: #444;
  text-align: center;
}

@media (max-width: 900px) {
  .projetos-grid {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .projeto-item {
    max-width: 98vw;
  }
}

.projeto-item {
  transition: transform 0.2s;
}

.projeto-item:hover {
  transform: scale(1.08);
  z-index: 2;
}

.footer {
  width: 100vw;
  background: rgba(28, 28, 28, 0.85);
  color: #eee;
  padding: 24px 0 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 64px;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link,
.footer-discord {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
}

.footer-link:hover {
  text-decoration: underline;
  color: #f7c873;
}

.footer-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
