/* ============================================================
   RESET
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
/* ============================================================
   VARIÁVEIS
============================================================ */
:root {
  --purple-100: #CECBF6;
  --purple-200: #AFA9EC;
  --purple-400: #7F77DD;
  --purple-600: #534AB7;
  --purple-800: #3C3489;
  --purple-900: #26215C;
 
  --bg:    #0A0A10;
  --bg2:   #0F0F1A;
  --bg3:   #141420;
  --card:  #12121F;
 
  --border:  rgba(127, 119, 221, 0.15);
  --border2: rgba(127, 119, 221, 0.30);
  --border3: rgba(127, 119, 221, 0.45);
 
  --text:   #F0EFFE;
  --muted:  rgba(240, 239, 254, 0.55);
  --accent: #7F77DD;
  --accent2: #534AB7;
 
  --transition: all 0.25s ease;
}
 
/* ============================================================
   BASE
============================================================ */
html { scroll-behavior: smooth; }
 
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Gradiente ambiente fixo */
  background-image:
    radial-gradient(ellipse 70% 50% at 85% -5%,  rgba(83, 74, 183, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(127, 119, 221, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
}
 
/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
 
main { flex: 1; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
 
/* ============================================================
   GLOW ORBS
============================================================ */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(83, 74, 183, 0.18) 0%, transparent 70%);
  top: -100px; right: -200px;
}
.glow-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(127, 119, 221, 0.10) 0%, transparent 70%);
  bottom: 20%; left: -150px;
}
 
/* ============================================================
   NAV
============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 16, 0.75);
  border-bottom: 0.5px solid var(--border);
}
 
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  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: 500;
  transition: color 0.2s; letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
 
/* ============================================================
   BOTÕES
============================================================ */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.8rem; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: var(--transition); border: none;
  font-family: 'DM Sans', sans-serif;
}
 
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--purple-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127, 119, 221, 0.3);
}
 
.btn-outline {
  background: transparent; color: var(--text);
  border: 0.5px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}
 
/* ============================================================
   UTILITÁRIOS
============================================================ */
.container {
  max-width: 1100px; margin: 0 auto;
  padding: 6rem 2rem;
}
 
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
 
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 3rem; line-height: 1.1;
}
 
.divider {
  height: 0.5px; background: var(--border);
  max-width: 1100px; margin: 0 auto;
}
 
/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: none;
}
 
/* ============================================================
   ANIMAÇÃO FLUTUANTE
============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.float-animation {
  animation: float 4s ease-in-out infinite;
}
 
/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 2rem 4rem;
  max-width: 1100px; margin: 0 auto;
  gap: 4rem;
}
 
.hero-content {
  max-width: 560px;
  display: flex; flex-direction: column; gap: 1.5rem;
}
 
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(127, 119, 221, 0.10);
  border: 0.5px solid var(--border2);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.8rem; color: var(--purple-200);
  width: fit-content; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
 
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.hero-title .name  { color: var(--accent); }
.hero-title .line2 {
  display: block; margin-top: 0.2em;
  font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 600; color: var(--muted);
}
 
.hero-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
 
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
 
/* Imagem hero */
.hero-image-wrap {
  flex: 1; display: flex; justify-content: center; align-items: center;
  position: relative; min-width: 280px;
}
.hero-image-wrap::before {
  content: ''; position: absolute;
  width: 85%; height: 85%; border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 74, 183, 0.28) 0%, transparent 70%);
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.hero-image-wrap img {
  width: 100%; max-width: 460px;
  border-radius: 20px;
  border: 1.5px solid var(--border2);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 40px rgba(127, 119, 221, 0.12);
  position: relative; z-index: 1;
  animation: float 4s ease-in-out infinite;
}
 
/* ============================================================
   ABOUT
============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
 
/* Foto circular */
.about-photo-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.75rem;
}
.about-photo {
  width: 240px; height: 240px; border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent2);
  box-shadow: 0 0 0 8px rgba(83, 74, 183, 0.15), 0 8px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 10px rgba(127, 119, 221, 0.22), 0 12px 48px rgba(0, 0, 0, 0.55);
}
 
/* Contadores */
.gh-counters { display: flex; gap: 2.5rem; justify-content: center; }
.gh-counter  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gh-counter-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1;
  min-width: 40px; text-align: center;
}
.gh-counter-label {
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
 
/* Botões do about */
.about-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
 
/* Lado direito: código */
.about-right { display: flex; flex-direction: column; }
 
/* Bloco de código */
.code-block { background: var(--card); border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header {
  background: rgba(127, 119, 221, 0.05);
  border-bottom: 0.5px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 8px;
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }
.code-filename { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
.code-body {
  padding: 1.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.82rem; line-height: 1.9;
  overflow-x: auto;
}
.code-key   { color: var(--purple-200); }
.code-str   { color: #A8FF78; }
.code-arr   { color: var(--purple-400); }
.code-brace { color: var(--muted); }
 
/* ============================================================
   SKILLS
============================================================ */
#skills { background: var(--bg2); }
 
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
 
.skill-card {
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--border2); transform: translateY(-2px); }
 
.skill-card-label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
 
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
 
.tag {
  background: rgba(127, 119, 221, 0.08);
  border: 0.5px solid var(--border2);
  border-radius: 6px; padding: 4px 12px;
  font-size: 0.82rem; color: var(--purple-200);
  font-family: 'DM Mono', monospace;
  transition: background 0.2s;
}
.tag:hover { background: rgba(127, 119, 221, 0.18); }
 
/* ============================================================
   PROJECTS — SWIPER
============================================================ */
.swiper {
  width: 100%;
  padding-bottom: 3.5rem !important;
  overflow: hidden;
}
.swiper-slide { height: auto; }
 
/* Card */
.project-card {
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden; height: 100%;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.project-card:hover::before { opacity: 1; }
 
/* Área da imagem/ícone de linguagem */
.project-image-area {
  width: 100%; height: 9rem;
  background: linear-gradient(135deg, rgba(127, 119, 221, 0.08) 0%, rgba(83, 74, 183, 0.16) 100%);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-image-area img {
  width: 5rem; height: 5rem;
  object-fit: contain;
  transition: transform 0.3s;
  /* sem filter — ícones nas cores originais ficam bem no fundo escuro */
  filter: drop-shadow(0 2px 12px rgba(127, 119, 221, 0.2));
}
.project-card:hover .project-image-area img {
  transform: scale(1.08);
}
 
/* Conteúdo do card */
.project-body {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem; flex: 1;
}
 
.project-number {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.1em;
}
.project-title {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 700; color: var(--text); line-height: 1.3;
}
.project-desc {
  color: var(--muted); font-size: 0.88rem; line-height: 1.7; flex: 1;
}
 
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tag {
  background: rgba(83, 74, 183, 0.15);
  border: 0.5px solid rgba(127, 119, 221, 0.2);
  border-radius: 4px; padding: 3px 10px;
  font-size: 0.74rem; font-family: 'DM Mono', monospace;
  color: var(--purple-200);
}
 
.project-links {
  display: flex; gap: 1rem;
  padding-top: 0.75rem; border-top: 0.5px solid var(--border);
  margin-top: auto;
}
.project-link {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }
.project-link svg { width: 13px; height: 13px; fill: currentColor; }
 
/* Swiper controles */
.swiper-button-next,
.swiper-button-prev { color: var(--accent) !important; }
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 1.1rem !important; }
 
.swiper-pagination-bullet {
  background: var(--border2) !important; opacity: 1 !important;
  width: 8px !important; height: 8px !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 24px !important; border-radius: 4px !important;
}
 
/* Skeleton loader */
.skeleton-img {
  width: 100%; height: 9rem;
  background: var(--border); border-radius: 0;
  animation: sk 1.4s ease-in-out infinite;
}
.skeleton-line {
  height: 14px; border-radius: 4px;
  background: var(--border); margin-bottom: 10px;
  animation: sk 1.4s ease-in-out infinite;
}
.w60  { width: 60%; }
.w80  { width: 80%; }
.w100 { width: 100%; }
.skeleton { padding: 0; gap: 0; }
.skeleton .project-body-sk { padding: 1.5rem; display: flex; flex-direction: column; gap: 10px; }
@keyframes sk { 0%,100%{opacity:0.4} 50%{opacity:0.9} }
 
/* ============================================================
   CONTACT
============================================================ */
#contact { background: var(--bg2); }
 
.contact-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-inner .section-title { margin-bottom: 1rem; }
.contact-inner > p {
  color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem;
}
 
.contact-form {
  display: flex; flex-direction: column; gap: 1rem; text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
 
label {
  font-size: 0.82rem; color: var(--muted);
  font-family: 'DM Mono', monospace; letter-spacing: 0.05em;
}
 
input, textarea {
  background: var(--card); border: 0.5px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; resize: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: rgba(240, 239, 254, 0.25); }
 
.form-error { font-size: 0.78rem; color: #f87171; min-height: 1rem; }
 
.btn-submit { align-self: flex-end; padding: 0.85rem 2.5rem; }
 
/* Redes sociais */
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
 
.social-link {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--card); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: var(--transition);
}
.social-link:hover {
  border-color: var(--accent); background: rgba(127, 119, 221, 0.1);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; fill: var(--muted); transition: fill 0.2s; }
.social-link:hover svg { fill: var(--accent); }
 
/* ============================================================
   FOOTER
============================================================ */
footer {
  position: relative; z-index: 1;
  padding: 2rem; text-align: center;
  color: var(--muted); font-size: 0.82rem;
  border-top: 0.5px solid var(--border);
  font-family: 'DM Mono', monospace;
}
footer span { color: var(--accent); }
 
/* ============================================================
   SUCCESS PAGE
============================================================ */
.success-container {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-height: calc(100vh - 10rem);
  padding: 3rem 2rem;
}
 
.success-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
  max-width: 480px; text-align: center;
}
 
.success-icon {
  display: flex; align-items: center; justify-content: center;
  width: 9rem; height: 9rem; border-radius: 50%;
  background: rgba(127, 119, 221, 0.10);
  border: 1px solid var(--border2);
  box-shadow: 0 0 32px rgba(127, 119, 221, 0.15);
}
.success-icon img { width: 6rem; height: 6rem; }
 
.success-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.success-content h2 {
  font-size: 1.05rem; color: var(--muted); font-weight: 400; line-height: 1.8;
}
 
/* ============================================================
   RESPONSIVIDADE
============================================================ */
@media (max-width: 900px) {
 
  /* Hero */
  #hero {
    flex-direction: column-reverse;
    padding-top: 6rem; gap: 2rem; text-align: center;
  }
  .hero-content { max-width: 100%; align-items: center; }
  .hero-image-wrap { width: 75%; max-width: 320px; }
 
  /* About */
  #about .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap { order: -1; }
 
  /* Contact */
  .form-row { grid-template-columns: 1fr; }
 
  /* Nav */
  .nav-links { gap: 1.2rem; }
}
 
@media (max-width: 600px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.82rem; }
 
  .container { padding: 3.5rem 1.25rem; }
 
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { text-align: center; }
 
  .hero-image-wrap { width: 88%; max-width: 280px; }
 
  .btn-submit { align-self: stretch; text-align: center; }
 
  .success-icon { width: 7rem; height: 7rem; }
  .success-icon img { width: 5rem; height: 5rem; }
}
 