*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --accent: #7c6aff;
  --accent2: #a78bfa;
  --neon: #4fffb0;
  --text: #f0eeff;
  --muted: #8b85aa;
  --border: rgba(124,106,255,0.18);
  --card: rgba(255,255,255,0.03);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* GLOW BLOBS */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.blob-1 { width: 600px; height: 600px; background: #7c6aff; top: -200px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #4fffb0; bottom: 10%; right: -100px; }
.blob-3 { width: 300px; height: 300px; background: #a78bfa; top: 50%; left: 40%; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; color: #fff !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text, #f0eeff);
  border-radius: 2px;
  transition: all 0.3s;
}


/* SECTIONS */
section { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(79,255,176,0.08);
  border: 1px solid rgba(79,255,176,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h1 .accent { color: var(--accent2); }
h1 .line1, h1 .line2 { display: block; }

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(124,106,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124,106,255,0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(124,106,255,0.08);
}

/* AVATAR CARD */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Atualize este bloco no seu arquivo CSS */
.avatar-frame {
  position: relative;
  /* Torna a largura responsiva: 100% da largura do contêiner pai */
  width: 100%;
  /* Define um tamanho máximo para que não fique gigante em desktops */
  max-width: 340px; 
  /* Mantém a altura flexível e remove a altura fixa anterior */
  height: auto;
  /* Centraliza o card horizontalmente dentro do contêiner pai */
  margin-left: auto;
  margin-right: auto;
  display: block; /* Garante que as margens funcionem */
}

.avatar-card {
  width: 90%;
  max-width: 330px; /* Mantém o card menor que o frame */
  height: auto;
  min-height: 320px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem 1rem; /* Adiciona respiro para o conteúdo interno não colar nas bordas */
}

.avatar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--neon));
}

.avatar-initials {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.1);
  background: var(--bg);
  overflow: hidden;
}

.avatar-initials img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.5rem;
}

.avatar-role {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.5rem;
}

.avatar-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
  width: 100%;
}

.badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--accent2);
  background: rgba(124,106,255,0.08);
  white-space: nowrap;
}

.badge.green {
  color: var(--neon);
  background: rgba(79,255,176,0.08);
  border-color: rgba(79,255,176,0.2);
}

.floating-pill {
  position: absolute;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pill-1 { top: 20px; right: -30px; }
.pill-2 { bottom: 30px; left: -30px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }

/* STATS BAR */
.stats-bar {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ABOUT */
#sobre {
  padding: 7rem 2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,106,255,0.1);
  border: 1px solid rgba(124,106,255,0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: rgba(124,106,255,0.4);
  transform: translateY(-3px);
}

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.skill-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.skill-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.skill-card.learning {
  border-color: rgba(79,255,176,0.15);
  background: rgba(79,255,176,0.03);
}

.learning-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(79,255,176,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  margin-top: 0.4rem;
}

/* SERVICES */
#servicos {
  padding: 7rem 2rem;
  background: var(--bg2);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(124,106,255,0.06), transparent 60%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,106,255,0.35);
}

.service-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(124,106,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
}

/* PROJECTS */
#projetos {
  padding: 7rem 2rem;
}

.projects-header {
  margin-bottom: 3rem;
}

.projects-header h2 { margin-bottom: 0.5rem; }

.projects-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,106,255,0.4);
}

.project-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.thumb-purple { background: linear-gradient(135deg, #1a1433 0%, #2d1f5e 100%); }
.thumb-teal { background: linear-gradient(135deg, #0d2b25 0%, #0f4d3e 100%); }
.thumb-blue { background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 100%); }

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent);
}

.project-body {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.project-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  background: rgba(124,106,255,0.1);
  color: var(--accent2);
  border: 1px solid rgba(124,106,255,0.2);
}

.project-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.project-wip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(79,255,176,0.12);
  border: 1px solid rgba(79,255,176,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* CONTACT */
#contato {
  padding: 7rem 2rem;
  background: var(--bg2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 { margin-bottom: 1rem; }
.contact-left p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent2);
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border: 1px solid rgba(124,106,255,0.25);
  border-radius: 12px;
  transition: background 0.2s;
  word-break: break-all;
}

.contact-email:hover { background: rgba(124,106,255,0.08); }

/* SOCIAL */
.socials-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 1rem;
}

.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124,106,255,0.5);
}

.form-group textarea { min-height: 120px; }

.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.95rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(124,106,255,0.3);
}

.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}


.project-link {
  display:flex;align-items:center;gap:0.5rem;
  margin:0 1.5rem 1.5rem;padding:0.6rem 1rem;
  border:1px solid rgba(124,106,255,0.3);border-radius:10px;
  color:#a78bfa;font-size:0.82rem;text-decoration:none;
  transition:background 0.2s;
}
.project-link:hover { background: rgba(124,106,255,0.1); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag, h1, .hero-desc, .hero-buttons {
  animation: fadeUp 0.7s ease both;
}
.hero-tag { animation-delay: 0.1s; }
h1 { animation-delay: 0.2s; }
.hero-desc { animation-delay: 0.3s; }
.hero-buttons { animation-delay: 0.4s; }
.hero-visual { animation: fadeUp 0.9s 0.5s ease both; }

/* RESPONSIVE */
/* ===== TABLET (≤900px) ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  
  .avatar-frame { 
    width: 90%; 
    max-width: 360px; 
    height: auto; 
    min-height: 320px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
  }
  
  .floating-pill { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr !important; }
  .carousel-card-inner { grid-template-columns: 1fr !important; }
  .carousel-left-panel { border-radius: 20px 20px 0 0 !important; }
  .carousel-right-panel { border-radius: 0 0 20px 20px !important; min-height: 380px; }
  .hero-desc { max-width: 100%; }
  .socials-grid { gap: 0.5rem; }
}

/* ===== MOBILE (≤600px) ===== */
@media (max-width: 600px) {
  nav { padding: 1rem 1.2rem; }
  #hero { padding: 5.5rem 1.2rem 3rem; }
  #sobre, #servicos, #projetos, #contato { padding: 3.5rem 1.2rem; }
  .stats-bar { padding: 2rem 1.2rem; }
  .container { padding: 0 1.2rem; }
  h1 { font-size: 1.8rem; letter-spacing: -0.01em; line-height: 1.2; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: row; gap: 0.6rem; }
  .btn-primary, .btn-outline { 
    width: auto; 
    flex: 1;
    padding: 0.7rem 1rem; 
    font-size: 0.85rem; 
    justify-content: center; 
    white-space: nowrap;
  }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-number { font-size: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr !important; }
  
  /* Ajuste do Card */
  .avatar-frame { width: 92%; max-width: 340px; height: auto; min-height: 290px; }
  
  .avatar-initials { width: 80px; height: 80px; }
  .avatar-name { font-size: 1.1rem; }
  .avatar-role { font-size: 0.75rem; }
  .badge { font-size: 0.6rem; padding: 0.2rem 0.5rem; }
  .footer-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
  .contact-email { font-size: 0.8rem; word-break: break-all; }
  .socials-grid { gap: 0.5rem; }
  .social-link { font-size: 0.78rem; padding: 0.5rem 0.8rem; }
  .carousel-right-panel { min-height: 320px !important; }
}

/* ===== SMALL MOBILE (≤400px) ===== */
@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  
  /* Ajuste suave para telas muito pequenas */
  .avatar-frame { width: 90%; max-width: 260px; height: auto; min-height: 240px; }
  
  .hero-tag { font-size: 0.7rem; }
  .stats-inner { grid-template-columns: 1fr; }
}
