@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --bg: #020205;
  --bg-1: #08080c;
  --bg-2: #0e0e14;
  --bg-3: #14141e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.4);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #8b5cf6; /* Violet-500 */
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.2);
  --green: #10b981;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 50px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text);
  opacity: 0.4;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.lang-btn:hover {
  color: var(--text);
  background: var(--bg-3);
}

.lang-btn.active {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
}

.lang-divider {
  color: var(--border);
  font-size: 0.8rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 .highlight { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
  line-height: 1.8;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-tag i {
  color: var(--accent);
  font-size: 1rem;
}

.contact-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.08);
}

.contact-tag i { font-size: 0.9rem; }

.resume-text {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #bdbdbd;
  font-weight: 500;
}

.hero-resumes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-resumes h3 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 500;
  margin: 0;
}

.resume-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resume-pill:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.resume-pill i { 
  font-size: 1rem;
  transition: transform 0.3s;
}

.resume-pill:hover i {
  transform: translateY(2px);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124, 58, 237, 0.06);
}

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

.section-header {
  margin-bottom: 40px;
}

.section-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.about-left { position: sticky; top: 100px; }

.about-photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  display: block;
}

.about-photo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.about-right { display: flex; flex-direction: column; gap: 20px; }

.about-text {
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
}

.about-text p { margin-bottom: 12px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 500; }

/* ===== PROJETOS ===== */
.projects-group { margin-bottom: 40px; }

.projects-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.3px;
}

.projects-group-title.personal { color: var(--accent-light); }
.projects-group-title.academic { color: var(--green); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--bg-2);
  color: var(--accent-light);
}

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-personal {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-academic {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 12px;
}

.project-features {
  list-style: none;
  margin: 8px 0;
  flex: 1;
}

.project-features li {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.project-features li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tech {
  background: var(--bg-3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.btn-project {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.btn-github {
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-github:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  color: var(--text);
}

.btn-demo {
  background: var(--accent);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-demo:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== EXPERIENCE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 680px;
}

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

.exp-item {
  padding-left: 28px;
  padding-bottom: 36px;
  position: relative;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.exp-period {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.exp-company { color: var(--text-muted); margin-bottom: 8px; font-size: 0.8rem; }
.exp-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.skill-category {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.skill-category:hover { border-color: var(--border-hover); }
.skill-category h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== CONTATO ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: all 0.25s;
}
.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.contact-type { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; }
.contact-val { color: var(--text); font-weight: 500; font-size: 0.8rem; }
.contact-resumes { display: flex; flex-direction: column; gap: 12px; }
.resume-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}
.resume-btn:hover { border-color: var(--accent); background: rgba(124,58,237,0.06); }

/* EDUCATION */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.edu-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
}
.edu-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.edu-period {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.edu-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-institution { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.edu-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; margin-bottom: 16px; }
.edu-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.edu-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-primary { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-left { position: static; }
  .about-photo-wrap, .about-photo { width: 180px; height: 180px; }
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; }
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
}

footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }