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

:root {
  --bg-primary:   #0F172A;
  --bg-secondary: #111827;
  --blue:         #3B82F6;
  --blue-light:   #60A5FA;
  --white:        #FFFFFF;
  --text-muted:   #94A3B8;
  --border:       rgba(59,130,246,.15);
  --glass:        rgba(15,23,42,.7);
  --radius:       16px;
  --transition:   .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg-primary);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

.white { color: var(--white); }
.blue  { color: var(--blue);  }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ===========================
   CURSOR
=========================== */
.cursor {
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s ease;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid rgba(59,130,246,.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .15s ease, width .2s, height .2s;
}

body:hover .cursor-follower { opacity: 1; }

/* ===========================
   LOADING SCREEN
=========================== */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity .6s ease, visibility .6s ease;
}

#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }

.loader-logo {
  font-size: 3rem; font-weight: 800; letter-spacing: 4px;
  margin-bottom: 2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 220px; height: 4px;
  background: rgba(59,130,246,.2);
  border-radius: 99px; margin: 0 auto 1rem; overflow: hidden;
}

.loader-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 99px;
  animation: loadFill 1.8s ease forwards;
}

.loader-text { color: var(--text-muted); font-size: .85rem; letter-spacing: 2px; }

@keyframes loadFill { to { width: 100%; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--transition), backdrop-filter var(--transition),
              box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
  padding: .8rem 0;
}

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

.nav-logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 2px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .85; }

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

.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: .5px; position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue); border-radius: 99px;
  transition: width var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}

.menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 99px;
  transition: var(--transition);
}

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

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 10px; font-family: 'Sora', sans-serif;
  font-size: .88rem; font-weight: 600;
  cursor: none; border: 2px solid transparent;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(59,130,246,.35);
}
.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 32px rgba(59,130,246,.5);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: rgba(59,130,246,.1);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255,255,255,.15);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===========================
   SECTION COMMONS
=========================== */
section { padding: 100px 0; }

.section-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  color: var(--blue); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 1rem;
}

.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 99px; margin: 0 auto;
}

/* ===========================
   REVEAL ANIMATION
=========================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   HERO
=========================== */
#home {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}

#particles-js {
  position: absolute; inset: 0; z-index: 0;
}

.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  position: relative; z-index: 1;
  padding-top: 80px;
}

.hero-greeting {
  font-size: 1.1rem; color: var(--text-muted);
  font-weight: 400; margin-bottom: .5rem;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; letter-spacing: 2px; line-height: 1;
  margin-bottom: 1rem;
}

.hero-typing {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--blue-light);
  font-weight: 600; min-height: 2rem; margin-bottom: 1.5rem;
}

.cursor-blink {
  animation: blink .7s step-end infinite;
  color: var(--blue);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: .95rem; color: var(--text-muted);
  line-height: 1.8; max-width: 480px; margin-bottom: 2rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Avatar --- */
.hero-right { display: flex; justify-content: center; }

.hero-avatar-wrapper {
  position: relative; width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}

.avatar-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(59,130,246,.25) 0%, transparent 70%);
  border-radius: 50%; animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:.6} 50%{transform:scale(1.1);opacity:1} }

.avatar-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(59,130,246,.2);
  animation: ringRotate linear infinite;
}
.ring-1 { width: 300px; height: 300px; animation-duration: 20s; }
.ring-2 { width: 240px; height: 240px; animation-duration: 15s; border-style: dashed; animation-direction: reverse; }
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-illustration {
  width: 200px; height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(59,130,246,.1));
  border: 2px solid rgba(59,130,246,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: 0 0 60px rgba(59,130,246,.2), inset 0 0 40px rgba(59,130,246,.05);
}

.avatar-icon {
  font-size: 5rem; color: var(--blue);
  filter: drop-shadow(0 0 20px rgba(59,130,246,.6));
}

.floating-badge {
  position: absolute; background: var(--bg-secondary);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 8px; padding: .3rem .7rem;
  font-size: .72rem; font-weight: 600; color: var(--blue-light);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.badge-html { top: 10%;  left: -20px; animation-delay: 0s;   }
.badge-css  { top: 30%;  right: -30px; animation-delay: .5s; }
.badge-js   { bottom: 25%; left: -30px; animation-delay: 1s; }
.badge-git  { bottom: 10%; right: -15px; animation-delay: 1.5s; }

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-muted); font-size: .75rem;
  animation: bounceUpDown 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 99px; display: flex; justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--blue); border-radius: 99px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }
@keyframes bounceUpDown { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ===========================
   SOBRE
=========================== */
#sobre { background: var(--bg-secondary); }

.sobre-content {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: center;
}

.sobre-img-wrapper {
  position: relative; display: flex; justify-content: center;
}

.sobre-img-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}

.sobre-img-placeholder {
  width: 280px; height: 280px;
  background: linear-gradient(135deg, var(--bg-primary), rgba(59,130,246,.1));
  border: 2px solid rgba(59,130,246,.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.sobre-img-placeholder i { font-size: 6rem; color: var(--blue); opacity: .7; }

.sobre-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--bg-primary); border: 1px solid rgba(59,130,246,.3);
  border-radius: 99px; padding: .4rem 1rem;
  font-size: .78rem; font-weight: 600; color: var(--blue-light);
  display: flex; align-items: center; gap: .5rem; white-space: nowrap; z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.badge-dot {
  width: 8px; height: 8px; background: #22c55e;
  border-radius: 50%; animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }

.sobre-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.sobre-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.sobre-text p strong { color: var(--blue-light); font-weight: 600; }

.sobre-stats {
  display: flex; gap: 2rem; margin-bottom: 2rem;
  padding: 1.5rem; background: rgba(59,130,246,.05);
  border: 1px solid var(--border); border-radius: var(--radius);
}

.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.sobre-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===========================
   SKILLS
=========================== */
#skills { background: var(--bg-primary); }

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition); position: relative; overflow: hidden;
}

.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.05), transparent);
  opacity: 0; transition: opacity var(--transition);
}

.skill-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 40px rgba(59,130,246,.15); }
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 70px; height: 70px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 1rem;
  transition: box-shadow var(--transition);
}

.skill-card:hover .skill-icon { box-shadow: 0 0 24px rgba(59,130,246,.4); }

.html-icon   { background: rgba(228,77,38,.1); color: #e44d26; border: 1px solid rgba(228,77,38,.2); }
.css-icon    { background: rgba(38,77,228,.1);  color: #264de4; border: 1px solid rgba(38,77,228,.2); }
.js-icon     { background: rgba(240,219,79,.1); color: #f0db4f; border: 1px solid rgba(240,219,79,.2); }
.git-icon    { background: rgba(240,80,51,.1);  color: #f05033; border: 1px solid rgba(240,80,51,.2); }
.github-icon { background: rgba(255,255,255,.05); color: var(--white); border: 1px solid rgba(255,255,255,.1); }
.python-icon { background: rgba(55,118,171,.1); color: #3776ab; border: 1px solid rgba(55,118,171,.2); }
.sql-icon    { background: rgba(0,116,186,.1);  color: #0074ba; border: 1px solid rgba(0,116,186,.2); }
.logic-icon  { background: rgba(96,165,250,.1); color: var(--blue-light); border: 1px solid rgba(96,165,250,.2); }

.skill-name { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.skill-bar-wrapper { display: flex; align-items: center; gap: .75rem; }

.skill-bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden;
}

.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.skill-percent { font-size: .78rem; font-weight: 700; color: var(--blue-light); min-width: 34px; }

/* ===========================
   PROJETOS
=========================== */
#projetos { background: var(--bg-secondary); }

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

.project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
  border-color: rgba(59,130,246,.4);
}

.project-image { position: relative; height: 200px; overflow: hidden; }

.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.calc     { background: linear-gradient(135deg, #0f172a, #1e293b); color: #60a5fa; }
.todo     { background: linear-gradient(135deg, #0a1628, #172554); color: #3b82f6; }
.landing  { background: linear-gradient(135deg, #0f1923, #0c4a6e); color: #0ea5e9; }
.clock    { background: linear-gradient(135deg, #170f28, #2e1065); color: #a855f7; }
.currency { background: linear-gradient(135deg, #0f1e0f, #14532d); color: #22c55e; }
.spotify  { background: linear-gradient(135deg, #0a1a0f, #052e16); color: #1db954; }

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem; border-radius: 8px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--blue); color: var(--white);
  background: rgba(59,130,246,.15);
  transition: all var(--transition);
}

.overlay-btn:hover { background: var(--blue); transform: scale(1.05); }

.project-info { padding: 1.5rem; }

.project-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }

.project-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

.project-techs { display: flex; flex-wrap: wrap; gap: .4rem; }

.tech-tag {
  font-size: .72rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 99px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  color: var(--blue-light);
}

/* ===========================
   CERTIFICADOS
=========================== */
#certificados { background: var(--bg-primary); }

.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; align-items: flex-start; gap: 1.5rem;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}

.cert-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }

.cert-card:hover .cert-glow { opacity: 1; }

.cert-glow {
  position: absolute; top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,.15), transparent 70%);
  border-radius: 50%; opacity: 0; transition: opacity var(--transition);
}

.cert-icon {
  width: 56px; height: 56px; min-width: 56px;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--blue);
}

.cert-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.cert-info p  { font-size: .8rem; color: var(--text-muted); }

.cert-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 99px; margin-bottom: .4rem;
  letter-spacing: .5px; text-transform: uppercase;
  border: 1px solid;
}

/* badge variants */
.cert-badge { background: rgba(59,130,246,.15); color: var(--blue-light); border-color: rgba(59,130,246,.3); }
.cert-done  { background: rgba(34,197,94,.15);  color: #4ade80;           border-color: rgba(34,197,94,.3); }
.cert-progress { background: rgba(251,191,36,.15); color: #fbbf24;        border-color: rgba(251,191,36,.3); }

.cert-institution {
  font-size: .78rem; color: var(--blue-light);
  font-weight: 600; margin-bottom: .3rem;
  display: flex; align-items: center; gap: .4rem;
}
.cert-desc { font-size: .8rem; color: var(--text-muted); }

/* cert icon colors per institution */
.cert-icon-harvard  { background: rgba(164,22,26,.1);  color: #a4161a; border: 1px solid rgba(164,22,26,.25); }
.cert-icon-ifmg     { background: rgba(55,118,171,.1); color: #3776ab; border: 1px solid rgba(55,118,171,.25); }
.cert-icon-ifrs     { background: rgba(0,116,186,.1);  color: #0074ba; border: 1px solid rgba(0,116,186,.25); }
.cert-icon-bradesco { background: rgba(204,0,0,.1);    color: #cc0000; border: 1px solid rgba(204,0,0,.25); }

/* WhatsApp btn glow */
.btn-ghost.whatsapp-btn {
  border-color: rgba(37,211,102,.4);
  color: #25d366;
}
.btn-ghost.whatsapp-btn:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37,211,102,.08);
}

/* ===========================
   GITHUB STATS
=========================== */
#github-stats { background: var(--bg-secondary); }

.github-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.github-streak { grid-column: 1 / -1; }

.github-card {
  background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.github-card:hover { border-color: rgba(59,130,246,.4); box-shadow: 0 8px 32px rgba(0,0,0,.3); }

.github-img { max-width: 100%; border-radius: 8px; }

.github-placeholder {
  text-align: center; padding: 2rem; color: var(--text-muted);
}
.github-placeholder i { font-size: 3rem; color: var(--blue); opacity: .5; margin-bottom: 1rem; display: block; }
.github-placeholder p  { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: .3rem; }
.github-placeholder span { font-size: .78rem; }

/* ===========================
   CONTATO
=========================== */
#contato { background: var(--bg-primary); }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; position: relative; overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.contact-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: box-shadow var(--transition);
}

.contact-card:hover .contact-icon { box-shadow: 0 0 24px rgba(59,130,246,.4); }

.github-c    { background: rgba(255,255,255,.05);  border: 1px solid rgba(255,255,255,.15); color: var(--white); }
.linkedin-c  { background: rgba(10,102,194,.1);    border: 1px solid rgba(10,102,194,.3);   color: #0a66c2; }
.email-c     { background: rgba(239,68,68,.1);     border: 1px solid rgba(239,68,68,.3);    color: #ef4444; }
.phone-c     { background: rgba(34,197,94,.1);     border: 1px solid rgba(34,197,94,.3);    color: #22c55e; }
.whatsapp-c  { background: rgba(37,211,102,.1);    border: 1px solid rgba(37,211,102,.3);   color: #25d366; }

.contact-card:hover.contact-card:nth-child(1) { border-color: rgba(255,255,255,.3); }
.contact-card:hover.contact-card:nth-child(2) { border-color: rgba(10,102,194,.5);  }
.contact-card:hover.contact-card:nth-child(3) { border-color: rgba(239,68,68,.5);   }
.contact-card:hover.contact-card:nth-child(4) { border-color: rgba(37,211,102,.5);  }

/* Localização sobre */
.sobre-location {
  display: flex; align-items: center; gap: .5rem;
  color: var(--text-muted); font-size: .88rem;
  margin-bottom: 1.5rem;
}
.sobre-location i { color: var(--blue); }

.contact-card h3 { font-size: 1rem; font-weight: 700; }
.contact-card p  { font-size: .85rem; color: var(--text-muted); }

.contact-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(59,130,246,.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--blue-light);
  transition: all var(--transition);
}

.contact-card:hover .contact-arrow { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateX(4px); }

/* ===========================
   FOOTER
=========================== */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 2px;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: .8; }

.footer-text { color: var(--text-muted); font-size: .88rem; }
.footer-copy { color: rgba(148,163,184,.5); font-size: .78rem; }

/* ===========================
   BACK TO TOP
=========================== */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue); border: none; cursor: none;
  color: var(--white); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  transform: translateY(10px);
}

#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--blue-light); transform: translateY(-4px); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .sobre-content { grid-template-columns: 1fr; }
  .sobre-image { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh;
    width: 260px; background: rgba(15,23,42,.98);
    backdrop-filter: blur(20px); flex-direction: column;
    justify-content: center; gap: 2rem; padding: 2rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .menu-btn { display: flex; }
  .nav-link { font-size: 1rem; }
  .hero-name { font-size: 3rem; }
  section { padding: 70px 0; }
  .sobre-stats { flex-wrap: wrap; gap: 1rem; }
  .github-grid { grid-template-columns: 1fr; }
  .github-streak { grid-column: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .sobre-stats { justify-content: space-around; }
  .sobre-buttons { flex-direction: column; }
}

@media (max-width: 360px) {
  .hero-name { font-size: 2.5rem; }
  .section-title { font-size: 1.6rem; }
}

/* Touch devices — hide custom cursor */
@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .btn, .nav-link, .contact-card, .project-card,
  .skill-card, .cert-card, .overlay-btn,
  #back-to-top, .menu-btn, .nav-logo, .footer-logo { cursor: pointer; }
}
