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

html, body {
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #eef2f8;
  overflow-x: hidden;
}

/* =============================================
   HERO — BACKGROUND
   ============================================= */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 110%, rgba(130,160,230,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 10% 80%,  rgba(160,190,240,0.4)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%,  rgba(200,215,250,0.35) 0%, transparent 55%),
    #dce6f5;
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(100,130,200,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,130,200,0.07) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* =============================================
   HERO — BARRA SUPERIOR
   ============================================= */
.hero-top-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 3rem;
}

.hero-top-bar::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5a7fd4 30%, #8aaae8 70%, transparent 100%);
}

.hero-top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0;
}

.hero-top-bar-inner {
  overflow: hidden;
  width: 100%;
}

.top-skills-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.top-skills-track span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6080c0;
  font-weight: 400;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-skills-track span::after {
  content: '—';
  color: #a0b4dc;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}


.top-skills span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.top-skills span::after {
  content: '—';
  color: #a0b4dc;
}

.top-skills span:last-child::after {
  display: none;
}

/* =============================================
   HERO — NAV
   ============================================= */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3.5rem;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #3a5ba0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6080c0;
  text-decoration: none;
  transition: color 0.25s;
  font-weight: 400;
}

.nav-links a:hover {
  color: #3a5ba0;
}

/* =============================================
   HERO — LAYOUT PRINCIPAL
   ============================================= */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  padding: 2rem 3.5rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* =============================================
   HERO — CARD DE PERFIL
   ============================================= */
.profile-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 8px 40px rgba(80,110,190,0.14),
    0 1.5px 6px rgba(80,110,190,0.07),
    inset 0 1px 0 rgba(255,255,255,0.95);
  animation: cardIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(36px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.photo-wrap {
  width: 155px;
  height: 185px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #c8d4ec;
  box-shadow: 0 4px 20px rgba(80,110,190,0.18);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #c8d4ec 0%, #a8bde0 100%);
  flex-direction: column;
  gap: 0.5rem;
}

.photo-placeholder-inner svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.photo-placeholder-inner span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #7090b8;
}

.profile-name {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: #1a2a50;
  margin-bottom: 0.6rem;
}

.profile-divider {
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, #7a9ad8, #b0c4ea);
  margin: 0 auto 0.9rem;
  border-radius: 2px;
}

.profile-bio {
  font-size: 0.82rem;
  color: #6070a0;
  line-height: 1.75;
  max-width: 220px;
  font-weight: 300;
}

.card-btns {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.card-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
}

.card-btn-primary {
  background: linear-gradient(135deg, #4a72cc 0%, #6a92ec 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74,114,204,0.3);
}

.card-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,114,204,0.42);
}

.card-btn-ghost {
  border: 1px solid rgba(74,114,204,0.3);
  color: #4a72cc;
  background: transparent;
}

.card-btn-ghost:hover {
  background: rgba(74,114,204,0.06);
  border-color: rgba(74,114,204,0.5);
}

/* =============================================
   HERO — LADO DIREITO
   ============================================= */
.hero-right {
  padding-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-vline {
  position: absolute;
  left: 2.5rem;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(74,114,204,0.2) 30%,
    rgba(74,114,204,0.2) 70%,
    transparent
  );
}

.hero-role-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7090c8;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero-role-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #7090c8;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  font-style: italic;
  user-select: none;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
  margin-bottom: 0.1em;
}

.hero-title .line-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(60,100,190,0.5);
  letter-spacing: -0.01em;
}

.hero-title .line-filled {
  display: block;
  -webkit-text-stroke: 1.5px transparent;
  background: linear-gradient(135deg, #3a62bc 0%, #7aaae8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 0.9rem;
  color: #6070a0;
  line-height: 1.85;
  max-width: 380px;
  font-weight: 300;
  margin-top: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.75s forwards;
}

.chip {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a72cc;
  background: rgba(74,114,204,0.08);
  border: 1px solid rgba(74,114,204,0.22);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: default;
}

.chip:hover {
  background: rgba(74,114,204,0.14);
  border-color: rgba(74,114,204,0.42);
  transform: translateY(-2px);
}

.hero-deco-number {
  position: absolute;
  right: -1rem;
  bottom: -3rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13rem;
  font-weight: 700;
  color: rgba(74,114,204,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}


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

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* =============================================
   MENU HAMBURGUER & MOBILE MENU
   ============================================= */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(74,114,204,0.1);
  border: 1px solid rgba(74,114,204,0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  transition: background 0.2s;
}

.btn-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #4a72cc;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.btn-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.btn-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.btn-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220,230,245,0.97);
  backdrop-filter: blur(20px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu ul a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a62bc;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu ul a:hover {
  color: #6a92ec;
}


.container{
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;

}

#sobre {
  padding: 6rem 3.5rem;
  background: #dce6f5;
  margin-top: -2rem;
  padding-bottom:6rem;
}

.sobre-grid {
  max-width:1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;

}

.sobre-esquerda h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #3a62bc;
  margin-bottom: 1.5rem;
}

.sobre-esquerda p {
  font-size: 0.95rem;
  color: #495571;
  line-height: 1.85;
  font-weight: 300;
}

.sobre-direita {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,114,204,0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-numero {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #3a62bc;
}

.stat-label {
  font-size: 0.8rem;
  color: #6070a0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.btn-darkmode {
  background: rgba(74,114,204,0.1);
  border: 1px solid rgba(74,114,204,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.btn-darkmode:hover {
  background: rgba(74,114,204,0.2);
  border-color: rgba(74,114,204,0.5);
}

/* DARK MODE */
body.dark {
  background: #0d1117;
}

body.dark #hero .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 60% 110%, rgba(30,50,120,0.8) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(20,40,100,0.6) 0%, transparent 60%),
    #0d1117;
}

body.dark .profile-card {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

body.dark .profile-name { color: #e0eaff; }
body.dark .profile-bio  { color: #8899cc; }

body.dark nav .nav-links a { color: #8899cc; }
body.dark nav .nav-links a:hover { color: #c0d0f0; }
body.dark .nav-logo { color: #8aaae8; }

body.dark #sobre { background: #111827; }
body.dark .sobre-esquerda h2 { color: #e0eaff; }
body.dark .sobre-esquerda p  { color: #8899cc; }
body.dark .stat {
  background: rgba(255,255,255,0.04);
  border-color: rgba(74,114,204,0.25);
}
body.dark .stat-numero { color: #8aaae8; }
body.dark .stat-label  { color: #8899cc; }

/* =============================================
   SKILLS
   ============================================= */
#skills {
  padding: 6rem 3.5rem;
  background: #dce6f5;
  padding-top: 5rem;
}



#skills h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #3a62bc;
  margin-bottom: 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.skills-grupo {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,114,204,0.2);
  border-radius: 16px;
  padding: 1.75rem;
}

.skills-grupo h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a62bc;
  margin-bottom: 1.25rem;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #4a72cc;
  background: rgba(74,114,204,0.08);
  border: 1px solid rgba(74,114,204,0.22);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-weight: 400;
  transition: all 0.25s;
  cursor: default;
}

.skill-chip:hover {
  background: rgba(74,114,204,0.16);
  border-color: rgba(74,114,204,0.4);
  transform: translateY(-2px);
}

body.dark #skills { background: #111827; }
body.dark #skills h2 { color: #e0eaff; }
body.dark .skills-grupo {
  background: rgba(61, 74, 190, 0.04);
  border-color: rgba(74,114,204,0.25);
}
body.dark .skills-grupo h3 { color: #8aaae8; }
body.dark .skill-chip {
  color: #8aaae8;
  background: rgba(74,114,204,0.1);
  border-color: rgba(74,114,204,0.25);
}


/* ====== PROJETOS ====== */

#projetos {
  padding: 6rem 3.5rem 5rem;
  background: #dce6f5;
}

#projetos h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #3a62bc;
  margin-bottom: 3rem;
}

/* Grid */
.projetos-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* Card */
.projeto-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,114,204,0.2);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.projeto-card:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(74,114,204,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,114,204,0.15);
}

/* Header */
.projeto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.projeto-titulo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
}

/* Botões */
.projeto-actions {
  display: flex;
  gap: 0.75rem;
}

.projeto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s;
}

.projeto-btn-demo {
  background: transparent;
  color: #4a72cc;
  border: 1px solid rgba(74,114,204,0.4);
}

.projeto-btn-demo:hover {
  background: rgba(74,114,204,0.08);
}

.projeto-btn-github {
  background: #4a72cc;
  color: #fff;
}

.projeto-btn-github:hover {
  background: #3a62bc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,114,204,0.3);
}

/* Descrição */
.projeto-descricao {
  font-size: 0.9rem;
  color: #495571;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* Tags */
.projeto-footer {
  margin-top: auto;
}

.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #4a72cc;
  background: rgba(74,114,204,0.08);
  border: 1px solid rgba(74,114,204,0.22);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  transition: all 0.25s;
}

.tag:hover {
  background: rgba(74,114,204,0.14);
  border-color: rgba(74,114,204,0.4);
}

/* Loading placeholder */
.projetos-loading {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0 1rem;
}

.projetos-loading-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7090c8;
  font-weight: 400;
}

.projetos-loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(74,114,204,0.12);
  border-radius: 100px;
  overflow: hidden;
}

.projetos-loading-fill {
  height: 100%;
  width: 99%;
  background: linear-gradient(90deg, #4a72cc 0%, #8aaae8 100%);
  border-radius: 100px;
  position: relative;
}

.projetos-loading-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  animation: shimmerPass 2.4s ease-in-out infinite;
}

@keyframes shimmerPass {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.projetos-loading-percent {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4a72cc;
  letter-spacing: 0.08em;
}

body.dark .projetos-loading-label   { color: #8899cc; }
body.dark .projetos-loading-bar     { background: rgba(138,170,232,0.1); }
body.dark .projetos-loading-percent { color: #8aaae8; }

/* ====== DARK MODE ====== */

body.dark #projetos {
  background: #1e2a44;
}

body.dark #projetos h2 {
  color: #a8c8ff;
}

body.dark .projeto-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(138,170,232,0.35);
}

body.dark .projeto-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(138,170,232,0.5);
  box-shadow: 0 12px 40px rgba(74,114,204,0.2);
}

body.dark .projeto-titulo {
  color: #a8c8ff;
}

body.dark .projeto-descricao {
  color: #a0b8dd;
}

body.dark .tag {
  color: #a8c8ff;
  background: rgba(138,170,232,0.08);
  border-color: rgba(138,170,232,0.3);
}

body.dark .tag:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(138,170,232,0.5);
}

body.dark .projeto-btn-demo {
  color: #a8c8ff;
  border-color: rgba(168,200,255,0.4);
}

body.dark .projeto-btn-demo:hover {
  background: rgba(168,200,255,0.08);
}

body.dark .projeto-btn-github {
  background: #24292e;
}

body.dark .projeto-btn-github:hover {
  background: #1b1f23;
}
 


#contato {
  padding: 6rem 3.5rem 5rem;
  background: #dce6f5;
}

#contato h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #3a62bc;
  margin-bottom: 3rem;
}

/* ====== CONTATO — CARDS ====== */

.contato-links {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contato-link-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74,114,204,0.2);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}

.contato-link-card:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(74,114,204,0.42);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(74,114,204,0.13);
}

.contato-link-icon {
  width: 42px;
  height: 42px;
  background: rgba(74,114,204,0.1);
  border: 1px solid rgba(74,114,204,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #4a72cc;
  flex-shrink: 0;
  transition: all 0.25s;
}

.contato-link-card:hover .contato-link-icon {
  background: rgba(74,114,204,0.16);
  border-color: rgba(74,114,204,0.38);
}

.contato-link-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contato-link-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7090c8;
  font-weight: 500;
}

.contato-link-value {
  font-size: 0.85rem;
  color: #1a2a50;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contato-link-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  color: #a0b4dc;
  flex-shrink: 0;
  transition: all 0.25s;
}

.contato-link-card:hover .contato-link-arrow {
  color: #4a72cc;
  transform: translate(2px, -2px);
}


/* ====== DARK MODE ====== */

body.dark #contato {
  background: #1e2a44;
}

body.dark #contato h2 {
  color: #a8c8ff;
}

body.dark .contato-link-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(138,170,232,0.2);
}

body.dark .contato-link-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(138,170,232,0.42);
  box-shadow: 0 10px 32px rgba(74,114,204,0.18);
}

body.dark .contato-link-icon {
  background: rgba(74,114,204,0.12);
  border-color: rgba(74,114,204,0.28);
  color: #8aaae8;
}

body.dark .contato-link-label {
  color: #8899cc;
}

body.dark .contato-link-value {
  color: #c8d8f0;
}

body.dark .contato-link-arrow {
  color: #5060a0;
}

body.dark .contato-link-card:hover .contato-link-arrow {
  color: #8aaae8;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: #6070a0;
}

footer p {
  margin: 0;
}



@media (max-width: 820px) {

  /* NAV */
  nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .btn-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .btn-darkmode {
    display: none;
  }

  /* HERO */
  .hero-content {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 5rem;
    gap: 2rem;
  }

  .profile-card {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-right {
    padding-left: 0;
    text-align: center;
  }

  .hero-vline { display: none; }
  .hero-role-label { justify-content: center; }
  .hero-chips { justify-content: center; }

  .hero-tagline {
    margin: 1.5rem auto 0;
    max-width: 100%;
  }

  .hero-title { font-size: 3.8rem; }
  .hero-deco-number { display: none; }

  /* SOBRE */
  #sobre {
    padding: 4rem 1.25rem !important;
  }

  .sobre-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* SKILLS */
  #skills {
    padding: 4rem 1.25rem !important;
  }

  #skills h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* PROJETOS */
  #projetos {
    padding: 4rem 1.25rem !important;
  }

  #projetos h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .projetos-container {
    grid-template-columns: 1fr !important;
  }

  /* CONTATO */
  #contato {
    padding: 4rem 1.25rem !important;
  }

  #contato h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .contato-links {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  /* FOOTER */
  footer {
    padding: 1.5rem 1.25rem;
  }
}

/* Mobile pequeno */
@media (max-width: 420px) {
  .hero-title { font-size: 2.8rem; }

  .profile-card {
    max-width: 100%;
  }

  .sobre-esquerda h2,
  #skills h2,
  #projetos h2,
  #contato h2 {
    font-size: 1.9rem;
  }
}

/* =====================================================================
   MOTION DESIGN
   (camada adicionada — tudo abaixo respeita prefers-reduced-motion)
   ===================================================================== */

/* ---------- barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 400;
  background: linear-gradient(90deg, #4a72cc, #8aaae8);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* ---------- intro (cortina) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.intro.done { display: none; }

.intro-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #0d1117;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}

.intro-top    { top: 0; }
.intro-bottom { bottom: 0; }

.intro.open .intro-top    { transform: translateY(-101%); }
.intro.open .intro-bottom { transform: translateY(101%); }

.intro-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.intro.open .intro-center { opacity: 0; transform: scale(0.96); }

.intro-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: 0.04em;
  color: #e0eaff;
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
  animation: introWipe 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.15s forwards;
}

.intro-role {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8aaae8;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}

.intro-bar {
  width: 160px;
  height: 2px;
  background: rgba(138,170,232,0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.8s forwards;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4a72cc, #8aaae8);
  transform: scaleX(0);
  transform-origin: left;
  animation: introLoad 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.85s forwards;
}

@keyframes introWipe { to { clip-path: inset(0 -0.1em 0 0); } }
@keyframes introLoad { to { transform: scaleX(1); } }

/* enquanto a intro roda, o hero espera (as animações começam ao abrir) */
body.intro-active #hero,
body.intro-active #hero * {
  animation-play-state: paused !important;
}

body.intro-active { overflow: hidden; }

/* ---------- hero: orbs, brilho do cursor, wipe do título ---------- */
.hero-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 340px; height: 340px;
  left: 4%; top: 16%;
  background: rgba(122,170,232,0.5);
  animation: orbFloat 15s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  right: 6%; bottom: 6%;
  background: rgba(90,127,212,0.34);
  animation: orbFloat 18s ease-in-out -6s infinite;
}
.orb-3 {
  width: 260px; height: 260px;
  left: 46%; top: 8%;
  background: rgba(176,196,234,0.55);
  animation: orbFloat 13s ease-in-out -10s infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(40px, -30px, 0) scale(1.08); }
  66%      { transform: translate3d(-30px, 26px, 0) scale(0.95); }
}

.hero-glow {
  position: absolute;
  z-index: 2;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,170,232,0.28) 0%, transparent 65%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

#hero.glow-on .hero-glow { opacity: 1; }

.hero-title .line-outline,
.hero-title .line-filled {
  clip-path: inset(0 100% 0 -0.1em);
  animation: titleWipe 0.95s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.hero-title .line-outline { animation-delay: 0.5s; }
.hero-title .line-filled  { animation-delay: 0.78s; }

@keyframes titleWipe { to { clip-path: inset(0 -0.2em 0 -0.1em); } }

/* rotator de palavras */
.hero-rotator {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: #6070a0;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.68s forwards;
}

.rot-word {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #4a72cc;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.rot-word.out { transform: translateY(-60%); opacity: 0; }
.rot-word.pre { transform: translateY(60%);  opacity: 0; transition: none; }

/* brilho no botão principal */
.card-btn-primary { position: relative; overflow: hidden; }
.card-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.card-btn-primary:hover::after { left: 130%; }

/* parallax do número decorativo */
.hero-deco-number { transform: translateY(calc(var(--sy, 0) * -0.18px)); }

/* indicador de scroll (estilos que faltavam) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7090c8;
}

.scroll-arrow {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #7090c8;
  border-bottom: 1.5px solid #7090c8;
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}

/* tilt 3D (valores vêm do JS) */
.profile-card {
  animation-fill-mode: backwards;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ---------- entradas em cascata ---------- */
.anim-in { opacity: 0; }

.anim-in.in {
  opacity: 1;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.skills-grupo.visible .skill-chip {
  animation: chipIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--c, 0) * 55ms + 0.3s);
}

@keyframes chipIn {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* títulos de seção: linha que se desenha */
#sobre h2, #skills h2, #projetos h2, #contato h2 { position: relative; }

#sobre h2::after, #skills h2::after, #projetos h2::after, #contato h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  margin-top: 0.6rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #4a72cc, rgba(138,170,232,0));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

#sobre h2.in::after, #skills h2.in::after, #projetos h2.in::after, #contato h2.in::after {
  width: 96px;
}

/* cards de projeto: tilt + realce */
.projeto-card {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out, background 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.projeto-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.projeto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 0%), rgba(122,170,232,0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projeto-card:hover::before { opacity: 1; }

.projetos-container { max-width: 1280px; margin: 0 auto; }

.projeto-titulo { line-height: 1.2; }

.projeto-header { gap: 1rem; align-items: flex-start; }

.sobre-esquerda p + p { margin-top: 1rem; }

/* ---------- dark mode dos itens novos ---------- */
body.dark .hero-orb      { opacity: 0.45; }
body.dark .orb-1         { background: rgba(40,70,170,0.6); }
body.dark .orb-2         { background: rgba(30,60,150,0.5); }
body.dark .orb-3         { background: rgba(60,90,190,0.4); }
body.dark .hero-glow     { background: radial-gradient(circle, rgba(90,127,212,0.3) 0%, transparent 65%); }
body.dark .hero-rotator  { color: #8899cc; }
body.dark .rot-word      { color: #8aaae8; }
body.dark .scroll-hint   { color: #8899cc; }
body.dark .scroll-arrow  { border-color: #8899cc; }
body.dark .projeto-card::before {
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 0%), rgba(138,170,232,0.18), transparent 70%);
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .hero-glow { display: none; }
  .hero-orb { filter: blur(48px); }
  .orb-1 { width: 220px; height: 220px; }
  .orb-2 { width: 260px; height: 260px; }
  .orb-3 { display: none; }
  .hero-rotator { justify-content: center; flex-wrap: wrap; }
  .scroll-hint { display: none; }
  .projeto-header { flex-direction: column; align-items: flex-start; }
}

/* sem hover/ponteiro fino: sem tilt */
@media (hover: none), (pointer: coarse) {
  .profile-card, .projeto-card { transform: none; }
  .projeto-card:hover { transform: translateY(-4px); }
}

/* ---------- reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  body.intro-active { overflow: auto; }
  body.intro-active #hero, body.intro-active #hero * { animation-play-state: running !important; }

  .hero-orb, .top-skills-track, .scroll-arrow { animation: none !important; }
  .hero-glow { display: none; }

  .hero-title .line-outline, .hero-title .line-filled {
    clip-path: none;
    animation: none;
  }

  .anim-in, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .anim-in.in, .skills-grupo.visible .skill-chip { animation: none !important; }

  #sobre h2::after, #skills h2::after, #projetos h2::after, #contato h2::after { width: 96px; transition: none; }

  .profile-card, .projeto-card { transform: none !important; }
  .scroll-progress { display: none; }
}

/* segurança: se o JS falhar, a intro some sozinha */
.intro { animation: introGone 0.01s linear 6s forwards; }
@keyframes introGone { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* rótulo pequeno acima dos títulos (antes sem estilo) */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7090c8;
  margin-bottom: 0.5rem;
}
.section-label:empty { display: none; }
body.dark .section-label { color: #8899cc; }
