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

body {
  background: radial-gradient(circle at top, #0b1b35, #050b14 70%);
  color: white;
  overflow-x: hidden;
}

/* fundinho bonito LAAA ELLEEEEEE */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(90, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 160, 255, 0.05) 1px, transparent 1px);

  background-size: 80px 80px;
  mask-image: radial-gradient(
    circle at 60% 20%,
    black 0%,
    black 45%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    circle at 60% 20%,
    black 0%,
    black 45%,
    transparent 75%
  );
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 80px;
  }
}

/* grids */
header,
section,
footer {
  position: relative;
  z-index: 1;
}

header {
  position: fixed;
  width: 100%;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90, 160, 255, 0.15);
  z-index: 10;
}

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

.menu a {
  margin-left: 30px;
  color: #cfe3ff;
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #cfe3ff;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(5, 11, 20, 0.95);
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.menu.active a {
  margin: 10px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .menu {
    display: none;
  }
}

.hero {
  padding: 140px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero p {
  max-width: 900px;
  font-size: 18px;
  line-height: 1.7;
  color: #dce7ff;
}

/* button base */
.btn {
  margin-top: 30px;
  padding: 18px 44px;
  background: linear-gradient(135deg, #5bc4ff, #3a8bff);
  border-radius: 14px;
  color: black;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(90, 160, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(90, 160, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}

.cv-buttons {
  flex-direction: row;
  flex-wrap: wrap;
  width: min(100%, 520px);
  margin-inline: auto;
  gap: 14px;
}

.btn-cv {
  flex: 1 1 240px;
  min-width: 0;
  margin-top: 0;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(91, 196, 255, 0.88), rgba(58, 139, 255, 0.82)),
    rgba(10, 20, 35, 0.6);
  color: #02111f;
  box-shadow:
    0 14px 34px rgba(58, 139, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-flag {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(2, 17, 31, 0.14);
  border: 1px solid rgba(2, 17, 31, 0.12);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(2, 17, 31, 0.14));
}

.btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-copy strong {
  font-size: 0.92rem;
}

.btn-copy small {
  font-size: 0.68rem;
  color: rgba(2, 17, 31, 0.75);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-buttons {
  gap: 18px;
}

.btn-resource {
  min-width: 250px;
  padding: 20px 50px;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    max-width: 360px;
  }

  .btn-cv {
    width: 100%;
    max-width: none;
  }
}

.section {
  max-width: 1000px;
  margin: auto;
  padding: 80px 20px;
  text-align: center;
}

.formation-card {
  margin-top: 40px;
  background: rgba(15, 30, 60, 0.45);
  border: 1px solid rgba(90, 160, 255, 0.18);
  border-radius: 24px;
  padding: 50px 60px;
  text-align: left;
}

.highlight {
  color: #5bc4ff;
  font-weight: bold;
}

.spacer {
  height: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: rgba(15, 30, 60, 0.5);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(90, 160, 255, 0.2);
}

.experience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.experience-card {
  min-height: 220px;
  padding: 32px 34px;
  text-align: left;
}

.experience-card h3 {
  margin-bottom: 14px;
  color: #dfeeff;
}

.experience-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: #d0def8;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 50px;
  color: #9bbcff;
}
/* project cards */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.project-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 28px;
}

.project-card:hover video {
  filter: brightness(1.1) contrast(1.1);
  transform: scale(1.02);
  transition: 0.4s;
}

.social-card {
  display: flex;
  gap: 14px;
  background: rgba(10, 20, 35, 0.58);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  padding: 14px;
  border-radius: 22px;
  justify-content: center;
  margin: 40px auto 40px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(120, 170, 255, 0.25);
  width: min(100%, 520px);
  flex-wrap: wrap;
}

.social-card .social-item {
  min-width: 138px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(90, 160, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eaf3ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.social-card .social-item:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(91, 196, 255, 0.26), rgba(58, 139, 255, 0.2));
  border-color: rgba(145, 190, 255, 0.4);
  box-shadow: 0 14px 28px rgba(58, 139, 255, 0.22);
}

.social-card .social-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* moveLine keyframes no longer used */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.project-github {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid rgba(90, 160, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group span {
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

.project-github span {
  color: #7fbaff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-github a {
  padding: 8px 16px;
  background: linear-gradient(135deg, #5bc4ff, #3a8bff);
  color: #020617;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project-github a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(90, 160, 255, 0.45);
}

.project-github a.disabled {
  background: rgba(90, 160, 255, 0.15);
  color: #9bbcff;
  pointer-events: none;
}

.project-github a img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.loading-content {
  padding: 0 20px;
  max-width: 100%;
}

.loading-content h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  white-space: normal; /*qubra a linha fudida */
  word-break: break-word;
  text-align: center;
}

.loading-content p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  white-space: normal;
  text-align: center;
}
/* ===============================
  HEADER FLUTUANTE DE """"""VIDRO""""""
   =============================== */

.glass-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  height: 80px;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* estado ao scroll */
.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

/* brilho interno */
.glass-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
}

/* GARANTE QUE O NAV CONTINUE IGUAL SE FOR MEXER CUIDADO */
.glass-header .nav {
  height: 100%;
}

/* MENU MOBILE SOBRE O VIDRO */
@media (max-width: 768px) {
  .menu.active {
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
/* ===============================
   GLASS HEADER – MAIS ESCURO
   =============================== */

.glass-header {
  background: rgba(10, 20, 35, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);

  border: 1px solid rgba(120, 170, 255, 0.25);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-header.scrolled {
  background: rgba(8, 16, 28, 0.7);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
/* ===============================
menu bonitinho   =============================== */

@media (max-width: 768px) {
  .menu.active {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);

    border-radius: 22px;

    background: rgba(10, 20, 35, 0.9);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);

    border: 1px solid rgba(120, 170, 255, 0.25);

    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);

    padding: 24px 0;
  }

  .resource-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .social-card {
    width: 100%;
  }

  .social-card .social-item {
    flex: 1 1 100%;
  }
}
/* ===============================
   cuidado se aumentar é meio forte KK
   =============================== */

.water-distortion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

@keyframes waterMove {
  0% {
    backdrop-filter: blur(1.2px);
  }
  50% {
    backdrop-filter: blur(2px);
  }
  100% {
    backdrop-filter: blur(1.2px);
  }
}
/* ===============================
   AI MEU DEUS QUE LIDO BOLINHAS DE AGUA FODASSSSSSSSSSSS
   =============================== */

.bubbles {
  position: fixed;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bubbles.left {
  left: 0;
}

.bubbles.right {
  right: 0;
}

.bubbles span {
  position: absolute;
  bottom: -100px;
  width: 12px;
  height: 12px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(120, 180, 255, 0.25),
    rgba(255, 255, 255, 0.05)
  );

  animation: bubbleUp linear infinite;
  opacity: 0.4;
}

@keyframes bubbleUp {
  from {
    transform: translateY(0) scale(0.8);
  }
  to {
    transform: translateY(-120vh) scale(1.2);
  }
}

/* ===============================
   GRÁFICO DE IDIOMAS - BARRAS HORIZONTAIS
   =============================== */

.languages-chart {
  margin-top: 40px;
  padding: 30px;
  background: rgba(90, 160, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(90, 160, 255, 0.15);
}

.languages-chart h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: left;
}

.chart-container {
  width: 100%;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.bar-label {
  min-width: 90px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cfe3ff;
  text-align: right;
}

.bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  height: 35px;
}

.bar-background {
  width: 100%;
  height: 100%;
  background: rgba(90, 160, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  position: relative;
  overflow: hidden;
  width: 0;
  animation: barGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}

/* Gradientes para cada idioma - mais claro para mais escuro */
.bar[style*="--color-index: 0"] {
  background: linear-gradient(
    90deg,
    rgba(200, 230, 255, 0.9),
    rgba(90, 160, 255, 0.95)
  );
  box-shadow: 0 0 15px rgba(90, 160, 255, 0.4);
}

.bar[style*="--color-index: 1"] {
  background: linear-gradient(
    90deg,
    rgba(150, 200, 255, 0.85),
    rgba(70, 140, 255, 0.9)
  );
  box-shadow: 0 0 15px rgba(70, 140, 255, 0.35);
}

.bar[style*="--color-index: 2"] {
  background: linear-gradient(
    90deg,
    rgba(120, 180, 255, 0.8),
    rgba(50, 120, 255, 0.85)
  );
  box-shadow: 0 0 15px rgba(50, 120, 255, 0.3);
}

.bar[style*="--color-index: 3"] {
  background: linear-gradient(
    90deg,
    rgba(80, 150, 255, 0.75),
    rgba(30, 100, 255, 0.8)
  );
  box-shadow: 0 0 15px rgba(30, 100, 255, 0.25);
}

.bar-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

@keyframes barGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: calc(var(--level) * 1%);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    min-height: unset;
    padding: 28px 24px;
  }

  .languages-chart {
    padding: 20px;
  }

  .bar-label {
    min-width: 70px;
    font-size: 0.9rem;
  }

  .bar-wrapper {
    height: 30px;
  }

  .bar-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .languages-chart {
    padding: 15px;
  }

  .bar-row {
    gap: 10px;
  }

  .bar-label {
    min-width: 60px;
    font-size: 0.85rem;
  }

  .bar-wrapper {
    height: 25px;
  }

  .bar-text {
    font-size: 0.75rem;
    padding-right: 8px;
  }
}
