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

/* ─── VARIÁVEIS ─────────────────────────────── */
:root {
  --bg:        #070024;
  --bg2:       #0e0038;
  --accent:    #d9ff00;
  --accent2:   #01FFC2;
  --accent3:   #91ff01;
  --text:      #e8e4ff;
  --text-muted:#cecdd3;
  --card-bg:   rgba(255,255,255,0.04);
  --card-border:rgba(255,255,255,0.08);
  --nav-h:     72px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

img { display: block; max-width: 100%; }

/* ─── NAVBAR FIXA ───────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(7, 0, 36, 0.315);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}


#navbar.scrolled {
  background: rgba(7, 0, 36, 0.39);
  border-color: rgba(255,255,255,0.07);
}

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

.logo-accent { color: var(--accent); }

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

.link-animado {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s;
  display: inline-block;
}

.link-animado:hover { color: var(--text); }

.link-animado::after {
  content: "";
  position: absolute;
  left: 14px; bottom: 2px;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.link-animado:hover::after { width: calc(100% - 28px); }


.nav-cta {
  background: var(--accent);
  color: #07002a !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* Menu hamburguer (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Menu mobile drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(7, 0, 36, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px 30px 30px;
  gap: 4px;
  border-bottom: 1px solid var(--card-border);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }


/* ─── HEADER / HERO ─────────────────────────── */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 40px 60px;
  overflow: hidden;
}

/* Decorações flutuantes — ficam dentro do header */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  animation: floatDeco 10s ease-in-out infinite, gyroDeco 15s linear infinite;
  opacity: 0.75;
}

.deco-1 { width: 180px;  top: 18%; right: 12%; animation-delay: 0s; }
.deco-2 { width: 150px;  top: 12%; left: 8%;   animation-delay: 1.5s; }
.deco-3 { width: 120px;  bottom: 18%; left: 12%; animation-delay: 3s; }

@keyframes floatDeco {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}

@keyframes gyroDeco {
  0%   { rotate: 0deg; }
  50%  { rotate: 15deg; }
  100% { rotate: 0deg; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  width: 100%;
}

/* Foto com glow */
.img-container {
  position: relative;
  flex-shrink: 0;
}

.img-container::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.5;
  animation: glow 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.15); }
}

.foto {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255,255,255,0.1);
}

/* Texto hero */
.hero-text { flex: 1; }

.hero-greeting {
  font-size: 1rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 14px;
  color: #fff;
}

.accent-highlight {
  color: var(--accent);
  display: inline-block;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tag-role {
  background: rgba(217,255,0,0.12);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(217,255,0,0.25);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-secondary{
  background: var(--accent3);
  color: #070024;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 255, 0, 0.3);
}


.btn-primary {
  background: var(--accent);
  color: #070024;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217,255,0,0.3);
}

.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }


/* ─── HELPERS (label + título de section) ────── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.15;
}

/* Divisor visual entre sections */
section {
  padding: 100px 40px;
  position: relative;
}

section:not(:last-of-type)::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--card-border), transparent);
}


/* ─── SOBRE MIM ─────────────────────────────── */
.sobre-me { background: var(--bg); }

.sobre-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.sobre-img-wrap { flex-shrink: 0; }

.eudiv2 {
  width: 320px;
  height: auto;
  animation: floatDeco 10s ease-in-out infinite;
}

.sobre-texto p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.sobre-texto strong { color: var(--text); font-weight: 500; }

.sobre-texto mark {
  background: rgba(217,255,0,0.15);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
}


/* ─── SKILLS ────────────────────────────────── */
.skills {
  background: var(--bg2);
  text-align: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  width: 100px;
  height: 100px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(217,255,0,0.07);
}

.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.skill-card span {
  font-size: 0.90rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  text-align: center;
  transition: color 0.25s;
}

.skill-card:hover span { color: var(--accent); }


/* ─── PORTFOLIO ─────────────────────────────── */
.portfolio { background: var(--bg); text-align: center; }

.portfolio-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 10px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(217,255,0,0.08);
}

.card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  font-weight: 500;
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 6px;
  display: inline-block;
  transition: gap 0.2s;
}

.portfolio-card:hover .card-link { letter-spacing: 0.5px; }


/* ─── CONTATO ───────────────────────────────── */
.contato {
  background: var(--bg2);
  text-align: center;
}
 
.contato-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: -14px auto 48px;
  line-height: 1.7;
}
 
.contato-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 560px;
  margin: 0 auto;
}
 
/* Redes sociais — lista vertical clean */
.contato-social {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.social-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
 
.social-item:hover {
  border-color: var(--accent);
  background: rgba(217,255,0,0.05);
  transform: translateX(6px);
}
 
.social-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
 
.social-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s;
}
 
.social-icon svg {
  width: 26px;
  height: 26px;
}
 
.social-item:hover .social-icon {
  color: #fff;
}
 
.social-item div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
 
.social-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}
 
.social-handle {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-display);
  display: block;
}
 
/* E-mail CTA */
.contato-email-wrap {
  width: 100%;
  text-align: center;
}
 
.email-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
 
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #07002a;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  max-width: 100%;
  overflow-wrap: anywhere;
}
 
.email-btn img,
.email-btn svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
 
.email-btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(1,255,194,0.25);
}
 


/* ─── FOOTER ────────────────────────────────── */
footer {
  padding: 24px 40px;
  text-align: center;
  background: #000;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer strong { color: var(--accent); }


/* ===================================================
   RESPONSIVO — 1024px
   ============================================= */
@media (max-width: 1024px) {
  .hero-content { gap: 40px; }
  .foto { width: 230px; height: 230px; }
  .sobre-inner { gap: 40px; }
  .eudiv2 { width: 260px; }
}

/* =================================================
   RESPONSIVO — 768px
   ============================================= */
@media (max-width: 768px) {

  section { padding: 80px 20px; }

  /* Nav */
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: flex; }

  /* Hero */
  header { padding: calc(var(--nav-h) + 20px) 20px 50px; }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .foto { width: 180px; height: 180px; }

  .hero-sub { margin: 0 auto 28px; }
  .hero-ctas { justify-content: center; }

  .deco { opacity: 0.3; }
  .deco-1 { width: 50px; }
  .deco-2 { width: 45px; top: 8%; left: 4%; }
  .deco-3 { width: 40px; }

  /* Sobre */
  .sobre-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .eudiv2 { width: 200px; }

  /* Skills */
  .skills-container { gap: 12px; }

  .skill-card {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }

  .skill-card img { width: 34px; height: 34px; }
  .skill-card span { font-size: 0.7rem; }

  /* Portfolio */
  .portfolio-boxes { grid-template-columns: 1fr; max-width: 420px; }

  /* Contato */
  .contato-sub { margin-bottom: 32px; }
  .contato-grid { gap: 28px; }
}

/* ==================================================
   RESPONSIVO — 480px
   ============================================= */
@media (max-width: 480px) {
  section { padding: 60px 16px; }

  .hero-name { font-size: 2.4rem; }
  .foto { width: 150px; height: 150px; }

  .section-title { font-size: 1.6rem; }

  .skill-card {
    width: 74px;
    height: 74px;
  }

  .skill-card img { width: 28px; height: 28px; }
  .skill-card span { font-size: 0.65rem; }

  .social-item { padding: 12px 14px; gap: 12px; }
  .social-item img { width: 32px; height: 32px; }
  .social-handle { font-size: 0.9rem; }

  .email-btn { font-size: 0.82rem; padding: 12px 20px; }

  footer { padding: 20px 16px; }
}

/* ===================================================
   RESPONSIVO — 360px
   ============================================= */
@media (max-width: 360px) {
  .logo { font-size: 1.3rem; }
  .hero-name { font-size: 2rem; }
  .foto { width: 130px; height: 130px; }
  .eudiv2 { width: 160px; }

  .skill-card {
    width: 66px;
    height: 66px;
  }

  .skill-card img { width: 24px; height: 24px; }
}