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

:root {
  --bg:      #0a0a0f;
  --bg2:     #111118;
  --bg3:     #16161f;
  --card:    #1a1a26;
  --border:  rgba(255,255,255,0.07);
  --text:    #e8e8f0;
  --muted:   #7a7a9a;
  --accent:  #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --green:   #4ade80;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── 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='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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  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.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 6%;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite alternate;
  transition: transform 0.1s ease-out;
}
.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  bottom: 50px; right: 0;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate-reverse;
  transition: transform 0.1s ease-out;
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.2); }
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--green);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  animation: fadeUp .6s ease both;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ─── HERO TEXT ─── */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 1.5rem;
  animation: fadeUp .7s .1s ease both;
}
.hero-title .accent { color: var(--accent2); }

.hero-sub {
  color: var(--muted);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp .7s .2s ease both;
}

.hero-loc {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 2.5rem;
  animation: fadeUp .7s .25s ease both;
}
.hero-loc svg { opacity: .6; }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.35);
}
.btn-primary:hover {
  background: #7c74ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: .8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  transition: border-color .2s, background .2s, transform .15s;
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* ─── SECTIONS ─── */
section {
  padding: 6rem 6%;
}
section:nth-child(even) {
  background: var(--bg2);
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
}

.about-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}
.about-text p + p { margin-top: 1.2rem; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  transition: border-color .2s, transform .2s;
}
.about-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateX(4px);
}
.about-card h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.about-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* ─── SKILLS ─── */
.skills-wrapper { max-width: 1000px; }

.skill-group { margin-bottom: 2.5rem; }

.skill-group-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.skill-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(108,99,255,0.08);
}

/* ─── PROJECTS ─── */
.project-card {
  max-width: 700px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s;
}
.project-card:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-4px);
}

.project-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.project-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent2);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: gap .2s;
}
.project-card a:hover { gap: .7rem; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.project-tag {
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--accent3);
  font-size: .76rem;
  padding: .2rem .7rem;
  border-radius: 100px;
}

/* ─── EXPERIENCE ─── */
.exp-card {
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 2rem 2.5rem;
  margin-bottom: 1rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.exp-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.exp-org {
  color: var(--muted);
  font-size: .88rem;
  margin-top: .2rem;
}

.exp-date {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--accent2);
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .8rem;
  border-radius: 100px;
  white-space: nowrap;
}

.exp-desc {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1rem;
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.exp-list li {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}
.exp-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .3rem;
}

/* ─── CERTIFICATIONS ─── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  transition: border-color .2s, transform .2s;
  cursor: default;
}
.cert-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-3px);
}

.cert-issuer {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.cert-name {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ─── CONTACT ─── */
#contato {
  text-align: center;
}
#contato .section-title { margin: 0 auto 1.5rem; }
#contato .section-desc  { margin: 0 auto 3rem; }

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, transform .2s;
  min-width: 180px;
  justify-content: center;
}
.contact-link:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-2px);
}
.contact-link svg { color: var(--accent2); flex-shrink: 0; }

.contact-link span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cl-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.cl-val {
  font-size: .9rem;
  color: var(--text);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .9rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 4px 24px rgba(108,99,255,0.35);
  transition: background .2s, transform .15s;
}
.contact-cta:hover {
  background: #7c74ff;
  transform: translateY(-2px);
}

.contact-loc {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 2.5rem;
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 2rem 6%;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 5%; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4rem 5%; }
  .exp-header { flex-direction: column; }
}
