:root {
  --bg: #020617;
  --glass: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --primary: #38bdf8;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --success: #22c55e;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

.bg-blur {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 15% 15%, #0c4a6e40 0%, transparent 35%),
              radial-gradient(circle at 85% 85%, #082f4940 0%, transparent 35%);
  z-index: -1;
}

/* Header & Hero */
header { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.35em; text-transform: uppercase; letter-spacing: 0.4em; margin-bottom: 12px; }
.hero p { max-width: 750px; margin: 0 auto 2.5rem; font-size: 1.25rem; color: var(--muted); font-weight: 300; }

/* Typing Effect */
.typing-container {
  font-size: clamp(2.5rem, 8vw, 4.5rem); 
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2em; 
  min-width: 100%;
}

#typing-text { color: var(--text); }

.cursor {
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  margin-left: 5px;
}
.cursor::after { content: "|"; animation: blink 0.8s infinite; }

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

/* Botões */
.btn-group { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn i { font-size: 1.2rem; vertical-align: middle; }

.btn-primary { background: var(--primary); color: #020617; border: none; }
.btn-secondary {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.4);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Estilização Stack e Sobre */
.box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.box:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.3);
}

.box::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
}

.box:hover::after { left: 100%; }

.box h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
}

/* Botão Currículo */
.btn-fizzy {
  position: relative;
  overflow: hidden;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  z-index: 1;
}

.btn-fizzy:hover { color: #020617; background: var(--primary); }
.btn-fizzy::before, .btn-fizzy::after {
  content: ""; position: absolute; width: 10px; height: 10px; background: var(--primary);
  border-radius: 50%; opacity: 0; z-index: -1;
}

.btn-fizzy:hover::before { animation: fizzy-top 0.6s forwards; top: 50%; left: 20%; }
.btn-fizzy:hover::after { animation: fizzy-bottom 0.6s forwards; bottom: 50%; right: 20%; }

@keyframes fizzy-top { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(-30px, -50px) scale(0); opacity: 0; } }
@keyframes fizzy-bottom { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(30px, 50px) scale(0); opacity: 0; } }

/* Seções e Cards de Projetos */
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2rem; margin-bottom: 3rem; display: flex; align-items: center; gap: 20px; font-weight: 800; }
h2::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--glass-border), transparent); }

.stack { display: flex; flex-direction: column; gap: 3.5rem; margin-bottom: 4rem; }

.card {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem; 
  align-items: center;
  background: var(--glass);
  padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.3); }

.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%; width: 0;
  background: var(--primary);
  transition: var(--transition);
  opacity: 0.6;
}
.card:hover::before { width: 6px; }

/* Info do Card */
.badge { padding: 6px 14px; border-radius: 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; display: inline-block; letter-spacing: 1px; }
.badge-blue { background: rgba(56, 189, 248, 0.1); color: var(--primary); border: 1px solid rgba(56, 189, 248, 0.2); }
.badge-gray { background: rgba(148, 163, 184, 0.1); color: var(--muted); border: 1px solid rgba(148, 163, 184, 0.2); }
.badge-green { background: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.2); }
.badge-purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }

.card-info h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #fff; font-weight: 800; }
.card-info .subtitle { display: block; font-size: 0.85rem; color: var(--primary); margin-bottom: 1.2rem; font-family: 'JetBrains Mono', monospace; }
.card-info .subtitle i { margin-right: 5px; color: var(--primary); }
.card-info p { margin-bottom: 1.2rem; color: var(--muted); font-size: 0.95rem; }

.list { list-style: none; margin-bottom: 1.5rem; }
.list li { margin-bottom: 0.5rem; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.list li::before { content: "→"; color: var(--primary); font-weight: bold; }

.card-visual { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--glass-border); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-visual img { transform: scale(1.05); }

/* Grid Info (Sobre e Techs) */
.grid-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Sociais Hover Colors */
.btn-secondary[href*="github"]:hover { color: #fff; border-color: #fff; box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3); }
.btn-secondary[href*="linkedin"]:hover { color: #0077b5; border-color: #0077b5; box-shadow: 0 10px 20px -10px rgba(0, 119, 181, 0.3); }

/* Seção Contato */
.contact-card { display: flex; justify-content: center; padding: 3rem !important; }
.contact-wrapper { max-width: 600px; width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text);
  transition: 0.3s; outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary); background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.divider { margin: 2rem 0; opacity: 0.5; display: flex; align-items: center; gap: 15px; }
.divider hr { flex: 1; border: 0; border-top: 1px solid var(--muted); }
.divider span { font-size: 0.8rem; font-family: 'JetBrains Mono'; }

.whatsapp-btn { width: 100%; border-color: rgba(37, 211, 102, 0.3) !important; gap: 15px; }
.whatsapp-btn i { color: #22c55e; font-size: 1.5rem; }
.whatsapp-btn:hover { border-color: #22c55e !important; box-shadow: 0 10px 20px -10px rgba(34, 197, 94, 0.3) !important; }

/* Footer */
footer {
  text-align: center; padding: 5rem 2rem; color: var(--muted); font-size: 0.8rem;
  border-top: 1px solid var(--glass-border); margin-top: 4rem;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.3));
  position: relative;
}

footer p { letter-spacing: 2px; font-weight: 600; margin-bottom: 10px; }

footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 1px; background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

/* Responsividade */
@media (max-width: 968px) {
  .card { grid-template-columns: 1fr; padding: 2rem; gap: 1.5rem; }
  .card-visual { order: -1; }
  header { padding: 6rem 1rem; }
}