:root {
  --primary: #a29bfe;
  --neon: #6c5ce7;
  --bg-dark: #0a0a0c;
  --glass: rgba(255, 255, 255, 0.05);
  --spotify-green: #1DB954;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(162, 155, 254, 0.1) 0%, transparent 40%);
  color: #fff;
  overflow-x: hidden;
}

header { height: 100vh; display: flex; flex-direction: column; }

nav {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 10%;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.links a {
  color: #ccc;
  text-decoration: none;
  margin-left: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
}
.links a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

#typing { font-size: 3rem; min-height: 1.2em; margin-bottom: 10px; }

.hero-subtitle {
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #eee;
}

.neon-text {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 20px var(--neon), 0 0 40px var(--neon);
  animation: flicker 2s infinite;
}

.hero-bio {
  margin-top: 30px;
  max-width: 800px;
  padding: 25px;
  background: var(--glass);
  border-radius: 15px;
  border: 1px solid rgba(162, 155, 254, 0.2);
  backdrop-filter: blur(5px);
  font-size: 1.1rem;
  line-height: 1.6;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

section { padding: 100px 10%; }
h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; color: var(--primary); }

/* --- GRID DE PROJETOS ORGANIZADO --- */
.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 30px;
    justify-content: center; /* Centraliza os 2 cards */
    margin-bottom: 50px;
}

.projeto-card {
  background: var(--glass);
  padding: 40px 30px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.glow-bar {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}

.projeto-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--neon);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* --- GRID DO JOGO (DESTAQUE) --- */
.jogo-destaque {
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.game-frame {
  margin: 20px auto;
  width: 100%;
  height: 500px;
  border-radius: 15px;
  border: 3px solid var(--neon);
  box-shadow: 0 0 25px rgba(108, 92, 231, 0.4);
  overflow: hidden;
  background: #000;
}

.game-frame iframe { width: 100%; height: 100%; border: none; }

/* --- BOTÕES FLUTUANTES --- */
.whatsapp-float, .tiktok-float {
  position: fixed;
  right: 20px;
  width: 60px;
  height: 60px;
  color: #FFF;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 1001;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-float { bottom: 20px; background-color: #25d366; }
.tiktok-float { bottom: 160px; background-color: #000; box-shadow: 0 0 15px rgba(255,0,80,0.3); }

/* --- SPOTIFY WIDGET (REDUZIDO) --- */
#spotify-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--spotify-green);
  border-radius: 50px;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

#spotify-widget.spotify-opened {
  width: 320px;
  height: 220px; /* Reduzi a altura para o player compacto */
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.98);
  bottom: 20px;
  border: 1px solid var(--spotify-green);
}

#toggle-spotify {
  min-height: 60px;
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#spotify-content { padding: 10px; opacity: 0; transition: 0.3s; }
.spotify-opened #spotify-content { opacity: 1; }

/* --- CERTIFICADOS E AFINS --- */
.certificados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background: var(--glass);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--neon);
}

.contato-box {
  background: linear-gradient(rgba(108, 92, 231, 0.1), transparent);
  padding: 60px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.btn-neon {
  display: inline-block;
  padding: 12px 30px;
  margin: 10px;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-neon:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary); }

footer { text-align: center; padding: 50px; opacity: 0.6; }

@media (max-width: 768px) {
  .game-frame { height: 300px; }
  #typing { font-size: 2rem; }
}