/* =========================================================
   MAIN.CSS — Portfólio Profissional — Arnaldo Junior
   Tema: Dark Navy Blue Premium
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg-primary:    #070d1a;
  --bg-secondary:  #0c1525;
  --bg-card:       rgba(14, 24, 46, 0.85);
  --bg-card-hover: rgba(19, 34, 64, 0.95);
  --accent:        #2563eb;
  --accent-light:  #3b82f6;
  --accent-glow:   rgba(37, 99, 235, 0.25);
  --text-primary:  #e8edf5;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        rgba(37, 99, 235, 0.18);
  --border-hover:  rgba(59, 130, 246, 0.45);
  --gradient-hero: linear-gradient(135deg, #070d1a 0%, #0a1628 50%, #0d1f3c 100%);
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-card:   0 4px 32px rgba(0,0,0,0.45), 0 1px 0 rgba(59,130,246,0.08) inset;
  --shadow-glow:   0 0 40px rgba(37,99,235,0.15);
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(37,99,235,0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: #93c5fd; text-decoration: underline; }

code, .mono {
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  background: rgba(37,99,235,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  color: #93c5fd;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(7, 13, 26, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand span { color: var(--accent-light); }

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(37,99,235,0.12);
}

.nav-lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-lang a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.nav-lang a:hover, .nav-lang a.active {
  color: var(--accent-light);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}

.hero-avatar {
  flex-shrink: 0;
  position: relative;
}

.hero-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow), var(--shadow-glow);
  display: block;
}

.hero-content { flex: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-title strong {
  color: var(--accent-light);
  font-weight: 600;
}

.hero-bio {
  font-size: 0.97rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── SECTION WRAPPER ────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 120px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ─── SKILLS GRID ────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.skill-category-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-icon { font-size: 1.1rem; }

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

.tag {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(37,99,235,0.12);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.2);
  font-family: 'Fira Code', monospace;
  transition: var(--transition);
}

.tag:hover {
  background: rgba(37,99,235,0.22);
  border-color: var(--accent);
}

.tag.primary {
  background: rgba(37,99,235,0.22);
  border-color: var(--accent);
  color: #bfdbfe;
}

/* ─── EXPERIENCE TIMELINE ────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-style: italic;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-desc ul li::before {
  content: '▸ ';
  color: var(--accent-light);
  font-weight: bold;
}

/* ─── PROJECTS ───────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(37,99,235,0.2);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  white-space: nowrap;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.project-link:hover {
  color: #93c5fd;
  text-decoration: none;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-icon { font-size: 1.1rem; }

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 40px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; flex: 1; min-width: 100px; }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 40px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent-light); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp 0.6s ease both; }
.hero-content { animation: fadeUp 0.6s 0.1s ease both; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 48px 20px 40px;
    gap: 28px;
  }

  .hero h1 { font-size: 1.9rem; }
  .hero-bio { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { justify-content: center; }

  .container { padding: 0 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-bar { padding: 24px 20px; gap: 24px; }
  .section-title { font-size: 1.4rem; }
}
