/* === BASE === */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --text: #eef0f4;
  --muted: #6b7280;
  --radius: 14px;
  --transition: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 99px; }

/* === SELECTION === */
::selection { background: rgba(139,92,246,0.25); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--text); }

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  filter: brightness(1.05);
  display: block;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--purple);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
  min-height: 1.8rem;
}

.typing-cursor {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

/* === SOBRE === */
.sobre-text-block {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-text-block p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.8;
}

/* === SKILLS === */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  padding: 28px;
  border-radius: var(--radius);
}

.skill-group h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 0.88rem;
  color: #d1d5db;
  font-weight: 500;
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.learning {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.learning-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: #f59e0b;
  font-family: 'JetBrains Mono', monospace;
  vertical-align: middle;
  margin-left: 6px;
}

/* === GLASS CARD === */
.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.glass-card:hover {
  border-color: rgba(139,92,246,0.3);
  background: rgba(255,255,255,0.06);
}

/* === PROJETOS === */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proj-card {
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proj-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 3px;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.proj-icon-emoji {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.proj-top h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proj-card > p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 640px;
}

.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proj-tags span {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: #a78bfa;
}

.proj-link {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  transition: opacity var(--transition);
  align-self: flex-start;
}

.proj-link:hover { opacity: 0.75; }

/* === CONTACTO === */
.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  margin-top: -24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateX(4px);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
}

.contact-icon svg { width: 17px; height: 17px; }

.contact-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1px;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding-top: 100px;
  }

  .hero-photo { width: 140px; height: 140px; }
  .hero-buttons { justify-content: center; }

  .skills-wrap { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    padding: 24px 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 14px; font-size: 1rem; }

  .hamburger { display: flex; }

  .proj-card { padding: 22px; }
}
