/* =========================
   RESET + TOKENS
========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #eafcff;
  background: #06080d;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
:root{
  --bg-img: url('https://img.freepik.com/fotos-gratis/fundo-abstrato-da-tecnologia-de-dados-3d-com-particulas-ciberneticas_1048-17876.jpg?semt=ais_incoming&w=740&q=80');
  --glass: rgba(8, 12, 20, 0.62);
  --card: rgba(255,255,255,0.05);
  --neon: #00f0ff;
  --neon-2: #a855f7;
  --text-dim: #b7d7dd;
  --maxw: 1100px;
  --radius: 14px;
  --shadow-neon: 0 0 20px rgba(0,240,255,.35), 0 0 40px rgba(168,85,247,.20);
}

/* =========================
   BACKGROUND + OVERLAY + PARTICLES
========================== */
.bg {
  position: fixed; inset: 0; z-index: -3;
  background: center / cover no-repeat var(--bg-img);
  filter: saturate(1.1) contrast(1.02) brightness(.8);
}
.overlay {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,240,255,.15), transparent 60%),
    radial-gradient(1200px 600px at 110% 110%, rgba(168,85,247,.12), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.50), rgba(0,0,0,.75) 50%, rgba(0,0,0,.85));
  backdrop-filter: blur(2px);
}
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 15%, var(--neon) 35%, transparent 70%);
  opacity: .85; filter: blur(.3px);
  animation: floatY var(--dur, 6s) ease-in-out infinite alternate;
}
@keyframes floatY { to { transform: translateY(-30px) translateX(10px) scale(1.08); } }

/* =========================
   BUBBLE NAVIGATION MENU
========================== */
.bubble-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}

.bubble-nav.hidden {
  transform: translateX(-50%) translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(0, 240, 255, 0.2);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Efeito de reflexo na bolha */
.bubble::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.nav-item {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
}

.nav-item:hover {
  transform: scale(1.1);
}

.nav-item.active {
  color: var(--neon);
}

.nav-icon {
  font-size: 1.4rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3));
}

.nav-item:hover .nav-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.nav-text {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  background: rgba(8, 12, 20, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.nav-item:hover .nav-text {
  opacity: 1;
}

/* =========================
   LAYOUT
========================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }
.hero {
  min-height: 92svh; display: grid; place-items: center; text-align: center;
  padding-top: 100px;
}
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), var(--shadow-neon);
}
.hero-card {
  padding: 44px 26px; backdrop-filter: blur(6px);
}
.title-xl {
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.05; margin: 0 0 6px;
  text-shadow: 0 0 18px rgba(0,240,255,.35);
}
.subtitle {
  color: var(--text-dim); font-size: clamp(14px, 2.4vw, 18px);
}
.chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px;
}
.chip {
  padding: 8px 12px; border-radius: 999px;
  color: #0a1319; font-weight: 700; font-size: 13px; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: var(--shadow-neon);
}
.cta {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.btn {
  padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  color: #eafcff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,.03);
  transition: .25s ease; font-weight: 600;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-neon); }

/* =========================
   SKILLS
========================== */
.section-pad { padding: 72px 0; }
.sec-title {
  font-size: clamp(22px, 4.5vw, 34px);
  text-align: center; margin: 0 0 26px;
  text-shadow: 0 0 12px rgba(0,240,255,.35);
}
.skills-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.skill {
  padding: 18px; border-radius: 12px; background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  transition: .25s ease; backdrop-filter: blur(4px);
}
.skill:hover { transform: translateY(-4px); box-shadow: var(--shadow-neon); }
.skill h4 { margin: 0 0 6px; }
.skill p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* =========================
   PORTFÓLIO (CARROSSEL)
========================== */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 6px 18px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 900px){ .carousel { grid-auto-columns: 33%; } }

.card {
  scroll-snap-align: start; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  transition: .3s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-neon); }
.thumb {
  aspect-ratio: 16 / 9; background: #0b121a center / cover no-repeat; position: relative;
}
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
}
.card-body { padding: 14px; display: grid; gap: 8px; }
.card h3 { margin: 2px 0 0; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }

.car-btn {
  position: absolute; top: 40%; translate: 0 -50%;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,20,.85); backdrop-filter: blur(6px); cursor: pointer;
  transition: .25s ease;
}
.car-btn:hover { box-shadow: var(--shadow-neon); }
.car-left { left: -6px; }
.car-right{ right: -6px; }

/* =========================
   CONTATO
========================== */
.contact-grid{
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 900px){ .contact-grid{ grid-template-columns: 1.2fr .8fr; } }
form {
  display: grid; gap: 12px; padding: 18px; border-radius: 12px; background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
}
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: #eafcff; outline: none;
}
input:focus, textarea:focus { box-shadow: 0 0 0 2px rgba(0,240,255,.35); }
button[type="submit"]{
  padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, var(--neon), var(--neon-2)); color: #051018;
  font-weight: 800; cursor: pointer; transition: .25s ease;
}
button[type="submit"]:hover { filter: brightness(1.05); transform: translateY(-1px); }

.contact-card {
  padding: 18px; border-radius: 12px; background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
}
.muted { color: var(--text-dim); }

/* =========================
   FOOTER
========================== */
footer { padding: 34px 0 44px; text-align: center; color: var(--text-dim); }

/* =========================
   ACESSIBILIDADE
========================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================
   RESPONSIVIDADE DO MENU BUBBLE
========================== */
@media (max-width: 768px) {
  .bubble-nav {
    padding: 6px;
    border-radius: 40px;
  }
  
  .bubble {
    width: 50px;
    height: 50px;
  }
  
  .nav-item {
    width: 50px;
    height: 50px;
  }
  
  .nav-icon {
    font-size: 1.2rem;
  }
  
  .nav-text {
    font-size: 0.7rem;
    bottom: -30px;
  }
}

@media (max-width: 480px) {
  .bubble-nav {
    transform: translateX(-50%) scale(0.9);
  }
  
  .bubble-nav.hidden {
    transform: translateX(-50%) translateY(-100px) scale(0.9);
  }
}