:root {
  --bg: #04120a;
  --bg2: #081e13;
  --bg3: #0c2b1d;
  --surface: rgba(16, 59, 41, 0.15);
  --border: rgba(16, 59, 41, 0.5);
  --accent: #00d97e;
  --accent2: #34d399;
  --accent3: #1e40af;
  --text: #e2f2ea;
  --muted: #94a89f;
  --font-main: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ── MOUSE GLOW (Dynamic) ── */
#cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,217,126,0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s, background 0.5s;
}
.freelance-mode #cursor-glow {
  background: radial-gradient(circle, rgba(30,64,175,0.2) 0%, transparent 60%);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 18, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s ease;
}
.freelance-mode .nav-logo {
  background: linear-gradient(135deg, var(--accent3), #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover { 
  color: var(--text); 
  transform: translateY(-2px);
}

/* ── HERO & TOGGLE ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  text-align: left;
}
.hero-ctas {
  justify-content: flex-start;
}

/* Hero right — floating card */
.hero-card-container {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  max-width: 380px;
  width: 100%;
  text-align: left;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,217,126,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.freelance-mode .hero-card::before {
  background: radial-gradient(circle, rgba(30,64,175,0.15) 0%, transparent 70%);
}

.hero-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px solid rgba(0,217,126,0.5);
}
.freelance-mode .hero-avatar {
  background: linear-gradient(135deg, var(--accent3), #1e3a8a);
  border-color: rgba(30,64,175,0.5);
  color: #fff;
}

.hero-card-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.hero-card-role {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.freelance-mode .hero-card-role { color: var(--accent3); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.freelance-mode .stat-number {
  background: linear-gradient(135deg, var(--accent3), #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: var(--surface);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toggle-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}
.toggle-label.active {
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,217,126,0.4);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg3);
  transition: .4s;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--accent);
  transition: .4s;
  box-shadow: 0 0 10px var(--accent);
}

input:checked + .slider {
  background-color: var(--bg3);
}
input:checked + .slider:before {
  transform: translateX(28px);
  background-color: var(--accent3); /* muda de cor no freelance */
  box-shadow: 0 0 10px var(--accent3);
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Hero Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,217,126,0.1);
  border: 1px solid rgba(0,217,126,0.3);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.hero-badge.freelance-theme {
  background: rgba(30,64,175,0.1);
  border-color: rgba(30,64,175,0.3);
  color: var(--accent3);
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-name span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s ease;
}
.freelance-mode .hero-name span {
  background: linear-gradient(135deg, var(--accent3), #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #000;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,217,126,0.3);
}
.freelance-mode .btn-primary {
  background: linear-gradient(135deg, var(--accent3), #1e3a8a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,64,175,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,217,126,0.5);
}
.freelance-mode .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(30,64,175,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text);
  transform: translateY(-3px);
}

/* ── SECTIONS ── */
main { position: relative; z-index: 1; }

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.freelance-mode .section-label { color: var(--accent3); }

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.freelance-mode .section-label::before { background: var(--accent3); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.section-title span {
  color: var(--accent);
}
.freelance-mode .section-title span { color: var(--accent3); }


/* ── VIEWS (Toggle Logic) ── */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.view-section.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── GRID ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.highlight-card:hover {
  border-color: var(--accent);
  transform: translateX(10px) translateY(-5px);
  box-shadow: -5px 10px 30px rgba(0,217,126,0.1);
  background: rgba(16, 59, 41, 0.3);
}
.freelance-mode .highlight-card:hover {
  border-color: var(--accent3);
  box-shadow: -5px 10px 30px rgba(30,64,175,0.1);
}

.highlight-icon {
  font-size: 1.75rem;
  color: var(--accent);
}
.freelance-mode .highlight-icon { color: var(--accent3); }

.highlight-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.highlight-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-content h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.timeline-content h4 span { color: var(--muted); font-weight: 400; }

.timeline-content ul {
  list-style: none;
}
.timeline-content ul li {
  color: var(--muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}
.timeline-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* ── GRID & CARDS ── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card-hover {
  transition: all 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0,217,126,0.1);
}

.pad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.pad-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pad-card h3 i { color: var(--accent); }

.clean-list { list-style: none; }
.clean-list li {
  margin-bottom: 1rem;
  color: var(--muted);
}
.clean-list li strong { color: var(--text); }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tech-tag {
  background: rgba(0,217,126,0.1);
  border: 1px solid rgba(0,217,126,0.25);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}
.freelance-mode .tech-tag {
  background: rgba(30,64,175,0.1);
  border-color: rgba(30,64,175,0.25);
  color: var(--accent3);
}

/* ── PORTFOLIO GRID (Freelance) ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent3);
  box-shadow: 0 20px 40px rgba(30,64,175,0.15);
}

.portfolio-img-placeholder {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,64,175,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover .portfolio-img-placeholder { transform: scale(1.05); transition: transform 0.6s ease; }

.portfolio-info {
  padding: 2rem;
}
.portfolio-info h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.portfolio-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .grid-2col, .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-name { font-size: 3.5rem; }
  .hero-desc { font-size: 1rem; }
  .hero-card-container { justify-content: flex-start; }
  nav { padding: 1rem; }
  .nav-links { display: none; } /* Simplicidade para mobile */
}
