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

/* ==========================
   VARIÁVEIS (Design System)
========================== */
:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --bg: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;

  --radius: 18px;
  --blur: blur(14px);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

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

/* ==========================
   BODY
========================== */
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================
   SKILLS CONTAINER
========================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

/* ==========================
   SKILL CARDS
========================== */
.frontend,
.backend,
.performance,
.ferramentas {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: var(--blur);
  text-align: center;

  transition: transform var(--transition), box-shadow var(--transition);
}

.frontend:hover,
.backend:hover,
.performance:hover,
.ferramentas:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}


/* ==========================
   HERO HEADER COM BACKGROUND
========================== */
.hero-header {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: var(--text);
  background: radial-gradient(circle at top, #1e293b, #020617);
  overflow: hidden;
}

/* ==========================
   VIDEO DI SFONDO (dopo la hero)
========================== */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.08);
}

.bg-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.88) 0%,
    rgba(2, 6, 23, 0.62) 42%,
    rgba(2, 6, 23, 0.72) 75%,
    rgba(2, 6, 23, 0.9) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .bg-video-wrap {
    display: none;
  }
}



/* ==========================
   TÍTULOS DAS SKILLS
========================== */
.frontend h3,
.backend h3,
.performance h3,
.ferramentas h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--accent);
}


/* ==========================
   IMAGEM DE FUNDO
========================== */
.hero-header::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.5%;
  height: 86%;
  aspect-ratio: 1200 / 1394;
  transform: translateY(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("./IMG_6345.jpg");
  filter: brightness(1.235) contrast(1.12) saturate(1.1);

  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 20%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 20%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;

  z-index: -2;
}

/* ==========================
   OVERLAY ESCURO (legibilidade)
========================== */
.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(2,6,23,0.36),
    rgba(2,6,23,0.6) 78%,
    #020617 100%
  );

  z-index: -1;
}

.hero-effects {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 44%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 170%;
  left: -55%;
  background: transparent;
  border-top: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: 100% 100% 0 0;
  box-shadow: 0 -8px 24px rgba(56, 189, 248, 0.16);
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: -9px;
  height: 100%;
  border-top: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 100% 100% 0 0;
}

.hero-glow::after {
  left: 14%;
  right: 14%;
  top: -17px;
  opacity: 0.5;
}

.glow-1 {
  height: 180px;
  top: 16%;
  animation: seaWave1 20s ease-in-out infinite;
}

.glow-2 {
  height: 165px;
  top: 38%;
  opacity: 0.78;
  border-top-color: rgba(56, 189, 248, 0.34);
  animation: seaWave2 24s ease-in-out infinite;
}

.glow-3 {
  height: 150px;
  top: 66%;
  opacity: 0.7;
  border-top-color: rgba(125, 211, 252, 0.3);
  animation: seaWave3 22s ease-in-out infinite;
}

@keyframes seaWave1 {
  0%,
  100% {
    transform: translateX(-84px) translateY(3px) scaleX(1);
    opacity: 0.22;
  }
  50% {
    transform: translateX(62px) translateY(-13px) scaleX(1.03);
    opacity: 0.62;
  }
  75% {
    transform: translateX(24px) translateY(-5px) scaleX(1.01);
    opacity: 0.46;
  }
}

@keyframes seaWave2 {
  0%,
  100% {
    transform: translateX(-58px) translateY(10px) scaleX(1);
    opacity: 0.2;
  }
  50% {
    transform: translateX(80px) translateY(-15px) scaleX(1.04);
    opacity: 0.56;
  }
  75% {
    transform: translateX(26px) translateY(-4px) scaleX(1.015);
    opacity: 0.42;
  }
}

@keyframes seaWave3 {
  0%,
  100% {
    transform: translateX(-70px) translateY(12px) scaleX(1);
    opacity: 0.2;
  }
  50% {
    transform: translateX(52px) translateY(-12px) scaleX(1.025);
    opacity: 0.5;
  }
  75% {
    transform: translateX(14px) translateY(-3px) scaleX(1.01);
    opacity: 0.36;
  }
}

/* ==========================
   TEXTO DO HERO
========================== */
.hero-header h1 {
  position: relative;
  z-index: 2;

  display: inline-grid;
  place-items: center;
  margin-top: 18px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  text-align: center;
}

/* Invisible full name reserves the box so the layout below never shifts
   while the name is being typed or deleted. */
.hero-name-ghost {
  visibility: hidden;
}

.hero-name-live {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single inline wrapper so the space between "Kallebe" and "Gallo"
   is preserved (flex items would otherwise collapse it). */
.hero-name-inner {
  white-space: pre;
}

.hero-header h1 .name-accent {
  color: var(--accent);
}

.hero-header p {
  position: relative;
  z-index: 2;
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-role {
  position: relative;
  z-index: 2;
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--accent), #c084fc 55%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.hero-role::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-role::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-tagline {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 38px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: rgba(2, 6, 23, 0.28);
  display: flex;
  justify-content: center;
  text-decoration: none;
  z-index: 3;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.scroll-line {
  position: absolute;
  top: 12px;
  width: 2px;
  height: 26px;
  border-radius: 99px;
  background: linear-gradient(to bottom, rgba(125, 211, 252, 0.95), rgba(125, 211, 252, 0.1));
}

.scroll-dot {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
  animation: scrollBounce 1.9s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    transform: translateY(26px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}


/* ==========================
   TEXTO DAS SKILLS
========================== */
.frontend p,
.backend p,
.performance p,
.ferramentas p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================
   FOTO DE PERFIL / HERO IMAGE
========================== */
.hero-image {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.hero-image img {
  width: 50%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 90px rgba(0,0,0,0.75);
}

/*
EXEMPLO DE IMAGEM (substitua pela sua):
https://images.unsplash.com/photo-1522202176988-66273c2fd55f
*/

/* ==========================
   NAVBAR
========================== */
.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  pointer-events: none;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 14px 18px;
  background: #020617;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.nav-wave {
  height: 84px;
  margin: 0;
  background: #020617;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,42 C300,78 560,58 780,44 C1000,30 1220,74 1440,38 L1440,0 L0,0 Z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,42 C300,78 560,58 780,44 C1000,30 1220,74 1440,38 L1440,0 L0,0 Z'/></svg>");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width var(--transition);
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}

.language-dropdown {
  position: relative;
  margin-left: 4px;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition);
}

.language-trigger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.language-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.language-current {
  font-size: 1.05rem;
}

.language-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.language-current-code {
  letter-spacing: 0.5px;
}

.language-arrow {
  font-size: 0.72rem;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  display: none;
  flex-direction: column;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 6px;
  z-index: 30;
}

.language-dropdown.open .language-menu {
  display: flex;
}

.language-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
}

.language-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ==========================
   SEÇÕES (BLOG STYLE)
========================== */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

section p {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
  color: var(--muted);
  font-size: 1.05rem;
}

.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(52px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}

.motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about {
  max-width: 760px;
  margin: 0 auto;
}

.about p {
  max-width: none;
  margin: 0 0 14px;
  text-align: center;
  line-height: 1.72;
  font-size: 1.08rem;
  color: #d7e1ef;
}

.about p:last-child {
  margin-bottom: 0;
}

#sobre h2 {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: clamp(2.7rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.skills-intro {
  max-width: 1000px;
  padding-top: 110px;
  padding-bottom: 72px;
}

.skills-intro-panel {
  position: relative;
  isolation: isolate;
  overflow: visible;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(78, 87, 106, 0.84), rgba(58, 66, 84, 0.9));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s cubic-bezier(.22,1,.36,1);
}

.skills-intro-panel::before,
.skills-intro-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(112, 120, 138, 0.5), rgba(74, 82, 100, 0.35));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 40px rgba(0,0,0,0.14);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.45s ease;
}

.skills-intro-panel::before {
  z-index: -1;
  opacity: 0.92;
  transform: scale(1.045);
}

.skills-intro-panel::after {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(147, 154, 169, 0.28), rgba(88, 96, 114, 0.18));
  z-index: -2;
  opacity: 0.82;
  transform: scale(1.09);
}

.skills-intro-panel > * {
  position: relative;
  z-index: 1;
}

.skills-intro-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 84px rgba(0,0,0,0.28);
}

.skills-intro-panel:hover::before {
  transform: translateY(8px) scale(1.05);
}

.skills-intro-panel:hover::after {
  transform: translateY(16px) scale(1.095);
}

.skills-intro h2 {
  max-width: 780px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: clamp(1.95rem, 3vw, 2.45rem);
  line-height: 1.1;
  color: var(--accent);
}

.skills-intro p {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 18px;
  line-height: 1.75;
}

.skills-tech-stack {
  margin-top: 34px;
}

.skills-ai-lead {
  margin-top: 26px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.skills-tech-stack-ai .skills-tech-title {
  background: linear-gradient(100deg, var(--accent), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-tech-stack-ai .skills-tech-item {
  border-color: rgba(192, 132, 252, 0.18);
}

.skills-tech-stack-ai .skills-tech-item:hover {
  border-color: rgba(192, 132, 252, 0.4);
}

.skills-ai-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 22px auto 0;
}

.skills-ai-tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(180deg, rgba(192,132,252,0.12), rgba(125,211,252,0.06));
  border: 1px solid rgba(192, 132, 252, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skills-ai-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(180deg, rgba(192,132,252,0.2), rgba(125,211,252,0.12));
}

.skills-tech-title {
  margin: 0 auto 18px;
  text-align: center;
  max-width: 900px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.skills-tech-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.skills-tech-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(125,211,252,0.12);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  transform: translateY(18px) rotateX(8deg);
  opacity: 0;
  animation: techCardRise 0.9s cubic-bezier(.22,1,.36,1) forwards;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s cubic-bezier(.22,1,.36,1), border-color 0.35s ease, background 0.35s ease;
}

.skills-tech-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 15%, rgba(255,255,255,0.2) 45%, transparent 72%);
  transform: translateX(-140%);
  opacity: 0.7;
  pointer-events: none;
  animation: techCardShine 5.8s ease-in-out infinite;
}

.skills-tech-item::after {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
  opacity: 0.7;
}

.skills-tech-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow: 0 24px 42px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(125, 211, 252, 0.08);
}

.skills-tech-item img {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.26));
  animation: techIconFloat 3.6s ease-in-out infinite;
}

.skills-tech-item span {
  position: relative;
  z-index: 1;
}

.skills-tech-item img {
  position: relative;
  z-index: 1;
}

.skills-tech-item:nth-child(1) { animation-delay: 0.04s; }
.skills-tech-item:nth-child(2) { animation-delay: 0.1s; }
.skills-tech-item:nth-child(3) { animation-delay: 0.16s; }
.skills-tech-item:nth-child(4) { animation-delay: 0.22s; }
.skills-tech-item:nth-child(5) { animation-delay: 0.28s; }
.skills-tech-item:nth-child(6) { animation-delay: 0.34s; }
.skills-tech-item:nth-child(7) { animation-delay: 0.4s; }
.skills-tech-item:nth-child(8) { animation-delay: 0.46s; }
.skills-tech-item:nth-child(9) { animation-delay: 0.52s; }
.skills-tech-item:nth-child(10) { animation-delay: 0.58s; }
.skills-tech-item:nth-child(11) { animation-delay: 0.64s; }
.skills-tech-item:nth-child(12) { animation-delay: 0.7s; }

.skills-tech-item:nth-child(2n) img {
  animation-delay: 0.25s;
}

.skills-tech-item:nth-child(3n) img {
  animation-delay: 0.5s;
}

@keyframes techCardRise {
  0% {
    opacity: 0;
    transform: translateY(18px) rotateX(8deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes techCardShine {
  0%,
  100% {
    transform: translateX(-140%);
    opacity: 0;
  }
  18% {
    opacity: 0.75;
  }
  42% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes techIconFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.05);
  }
}

/* ==========================
   REVIEWS ESTEIRA
========================== */
.reviews {
  max-width: 1240px;
  margin: 0 auto 110px;
  padding: 40px 20px;
}

#avaliacoes h2 {
  color: var(--accent);
}

.reviews-marquee {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 24px;
  animation: reviews-scroll 68s linear infinite;
}

.review-card {
  width: 320px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-head img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.6);
}

.review-head h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 2px;
}

.review-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.review-stars {
  color: #fbbf24;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.review-card p {
  margin: 0 0 12px;
  color: var(--text);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.58;
}

.review-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================
   FOOTER
========================== */
.site-footer {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: var(--blur);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 16px;
}

.footer-brand {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text);
}

.footer-brand span {
  color: var(--accent);
}

.footer-email {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 34px 0;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 1.22rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-col a:hover,
.footer-email:hover {
  color: var(--accent);
}

.footer-about p,
.footer-newsletter p {
  margin-bottom: 16px;
  line-height: 1.65;
}

.footer-cta {
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #020617 !important;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(56,189,248,0.35);
}

.newsletter-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px;
  background: rgba(2, 6, 23, 0.45);
}

.newsletter-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  padding: 6px 12px;
}

.newsletter-form button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: var(--text);
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-bottom p a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom p a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.footer-socials a:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.whatsapp-float {
  position: fixed;
  left: auto;
  right: 18px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: #25D366;
  z-index: 50;
  filter: drop-shadow(0 6px 14px rgba(37,211,102,0.55));
  transition: transform var(--transition), filter var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 10px 22px rgba(37,211,102,0.8));
}

.whatsapp-float svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ==========================
   ANIMAÇÕES
========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   RESPONSIVO
========================== */
@media (max-width: 768px) {
  .skills-intro {
    padding-top: 82px;
    padding-bottom: 58px;
  }

  .skills-intro-panel {
    padding: 30px 18px;
    border-radius: 22px;
  }

  .skills-intro-panel::before {
    border-radius: 18px;
    transform: scale(1.035);
  }

  .skills-intro-panel::after {
    border-radius: 16px;
    transform: scale(1.07);
  }

  .skills-intro-panel:hover {
    transform: translateY(-4px);
  }

  .skills-intro-panel:hover::before {
    transform: translateY(6px) scale(1.04);
  }

  .skills-intro-panel:hover::after {
    transform: translateY(10px) scale(1.075);
  }

  #sobre h2,
  .skills-intro h2,
  .skills-tech-title {
    text-align: center;
  }

  #sobre h2 {
    font-size: clamp(2.3rem, 8vw, 3rem);
    margin-bottom: 18px;
  }

  .skills-intro {
    max-width: 720px;
  }

  .skills-intro h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .about p,
  .skills-intro p {
    text-align: center;
    line-height: 1.62;
  }

  .about {
    max-width: 680px;
  }

  .skills-tech-stack {
    margin-top: 26px;
  }

  .skills-tech-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .skills-tech-item {
    min-height: 58px;
    padding: 12px 10px;
    font-size: 0.92rem;
  }

  .skills-tech-item:hover {
    transform: translateY(-3px) scale(1.01);
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 14px 16px;
  }

  nav a {
    font-size: 0.96rem;
  }

  .language-dropdown {
    margin-left: 0;
  }

  .language-menu {
    right: 50%;
    transform: translateX(50%);
  }

  header {
    padding-top: 80px;
  }

  .hero-header::before {
    inset: 0;
    height: auto;
    aspect-ratio: auto;
    transform: none;
    background-image: url("./IMG_6345.jpg");
    background-size: cover;
    background-position: center 20%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-effects {
    display: none;
  }

  .hero-header h1 {
    margin-right: 0;
    margin-top: 10px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .nav-wave {
    height: 54px;
  }

  .site-footer {
    padding: 24px 18px;
    margin: 0 14px 24px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    font-size: 1.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .reviews {
    margin-bottom: 90px;
  }

  .reviews-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .reviews-track {
    animation-duration: 80s;
    padding: 20px 14px;
  }

  .review-card {
    width: 280px;
  }

  .whatsapp-float {
    left: auto;
    right: 14px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .skills-intro {
    padding-top: 62px;
    padding-bottom: 46px;
  }

  .skills-intro-panel {
    padding: 24px 14px;
    border-radius: 18px;
  }

  .skills-intro-panel::before {
    border-radius: 14px;
    transform: scale(1.02);
  }

  .skills-intro-panel::after {
    border-radius: 12px;
    transform: scale(1.04);
  }

  .skills-intro h2 {
    max-width: 320px;
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .skills-intro p {
    margin-bottom: 14px;
  }

  .skills-tech-title {
    margin-bottom: 14px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .skills-tech-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .skills-tech-item {
    width: 100%;
    font-size: 0.88rem;
  }

  .skills-tech-item img {
    width: 26px;
    height: 26px;
  }

  nav {
    gap: 14px;
  }

  .language-trigger {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    width: 250px;
    padding: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .reviews-track,
  .hero-glow,
  .scroll-dot,
  .skills-tech-item,
  .skills-tech-item::before,
  .skills-tech-item img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .skills-tech-item {
    opacity: 1 !important;
  }
}

/* ==========================
   PROGETTI GITHUB (LIVE)
========================== */
#progetti-live {
  max-width: 1160px;
  padding-top: 80px;
}

#progetti-live h2 {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

#progetti-live .ghp-subtitle {
  margin-bottom: 44px;
}

.ghp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.ghp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--blur);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.ghp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ghp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ghp-type {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ghp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.ghp-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.ghp-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: #f8fafc;
}

.ghp-card p {
  margin: 0;
  text-align: left;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--muted);
}

.ghp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
}

.ghp-tags li {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.ghp-tags li img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.ghp-tags li::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.22) 50%, transparent 78%);
  transform: translateX(-160%);
  pointer-events: none;
  animation: ghpTagShine 7.2s ease-in-out infinite;
  animation-delay: calc(var(--tag-i, 0) * 0.5s + 0.6s);
}

.ghp-tags li:hover {
  transform: translateY(-3px) scale(1.04);
  color: #f0f9ff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35), 0 0 14px rgba(56, 189, 248, 0.16);
}

.ghp-tags li:nth-child(1) { --tag-i: 0; }
.ghp-tags li:nth-child(2) { --tag-i: 1; }
.ghp-tags li:nth-child(3) { --tag-i: 2; }
.ghp-tags li:nth-child(4) { --tag-i: 3; }
.ghp-tags li:nth-child(5) { --tag-i: 4; }
.ghp-tags li:nth-child(6) { --tag-i: 5; }

.motion-ready #progetti-live.scroll-reveal .ghp-tags li {
  opacity: 0;
}

.motion-ready #progetti-live.scroll-reveal.is-visible .ghp-tags li {
  opacity: 1;
  animation: ghpTagRise 0.55s cubic-bezier(.2, .85, .3, 1) backwards;
  animation-delay: calc(var(--tag-i, 0) * 70ms + 260ms);
}

@keyframes ghpTagRise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ghpTagShine {
  0%, 82% {
    transform: translateX(-160%);
  }
  92%, 100% {
    transform: translateX(160%);
  }
}

.ghp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.ghp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.ghp-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.ghp-link-live {
  color: #0b1120;
  background: linear-gradient(100deg, var(--accent), #60a5fa);
  border-color: transparent;
}

.ghp-link-live:hover {
  color: #0b1120;
  border-color: transparent;
  filter: brightness(1.12);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
}

.ghp-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.ghp-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.ghp-cta:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.22);
}

.ghp-cta svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .ghp-grid {
    grid-template-columns: 1fr;
  }

  #progetti-live {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghp-card,
  .ghp-link,
  .ghp-cta,
  .ghp-tags li {
    transition: none;
  }

  .ghp-card:hover,
  .ghp-link:hover,
  .ghp-cta:hover,
  .ghp-tags li:hover {
    transform: none;
  }

  .ghp-tags li,
  .ghp-tags li::before {
    animation: none;
    opacity: 1;
  }
}
