/* ==========================================================================
   Denison Oliveira — Portfólio
   Palette: dark tech + gradientes cyan/teal/lime
   ========================================================================== */

:root {
  --bg: #07070d;
  --bg-2: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e7e9f4;
  --text-dim: #9aa0b8;
  --text-muted: #6b7089;

  --cyan: #00e5ff;
  --teal: #14b8a6;
  --lime: #a3e635;

  --gradient: linear-gradient(135deg, #00e5ff 0%, #14b8a6 50%, #a3e635 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,229,255,.16) 0%, rgba(20,184,166,.16) 50%, rgba(163,230,53,.16) 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px rgba(0,0,0,.45);
  --shadow-md: 0 10px 30px rgba(0,0,0,.35);

  --maxw: 1120px;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

::selection {
  background: rgba(0, 229, 255, .35);
  color: #fff;
}

.mono { font-family: var(--font-mono); }

/* -------------------------------- Background aurora / grid ------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  will-change: transform;
}

.blob-1 { background: #00e5ff; top: -220px; left: -180px; animation: float1 22s ease-in-out infinite; }
.blob-2 { background: #14b8a6; top: 30%; right: -220px; animation: float2 28s ease-in-out infinite; }
.blob-3 { background: #a3e635; bottom: -260px; left: 30%; animation: float3 30s ease-in-out infinite; opacity: .35; }

@keyframes float1 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(60px,50px);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-80px,40px);} }
@keyframes float3 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(40px,-60px);} }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* -------------------------------- Nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(7, 7, 13, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}

.brand-name { color: var(--text); }
.brand-dot { color: var(--lime); }

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  background: var(--gradient) !important;
  color: #0a0a12 !important;
  font-weight: 600;
}

.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* -------------------------------- Sections ----------------------------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head {
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: .5px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* -------------------------------- Hero --------------------------------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 40px;
}

.hero-inner {
  max-width: 780px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, .18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(163, 230, 53, .18); }
  50%     { box-shadow: 0 0 0 8px rgba(163, 230, 53, .05); }
}

.hero-title {
  font-size: clamp(52px, 11vw, 120px);
  line-height: .95;
  margin: 0 0 20px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-title .line { display: block; }

.hero-title .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-dim);
  margin: 0 0 14px;
}

.hero-role .mono { color: var(--text); }

.hero-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 720px;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient);
  color: #0a0a12;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta .num {
  font-size: 26px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta > div > span:last-child {
  font-size: 13px;
  color: var(--text-dim);
}

/* -------------------------------- About -------------------------------- */

.about p {
  font-size: 17px;
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--text);
}

.about strong { color: #fff; font-weight: 600; }
.about em { color: var(--cyan); font-style: normal; font-family: var(--font-mono); font-size: .95em; }

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-width: 820px;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .2s ease, transform .2s ease;
}

.about-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.about-list li::before {
  content: "▹";
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
}

/* -------------------------------- Stack -------------------------------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.stack-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.stack-card:hover::before { opacity: 1; }

.stack-icon {
  font-size: 24px;
  margin-bottom: 10px;
  position: relative;
}

.stack-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

.stack-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.stack-card li {
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--font-mono);
}

.stack-card li::before {
  content: "› ";
  color: var(--cyan);
}

/* -------------------------------- Timeline ----------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--teal), var(--lime));
  opacity: .35;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .12);
}

.timeline-item:nth-child(3n+2) .timeline-dot { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }
.timeline-item:nth-child(3n) .timeline-dot   { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(163, 230, 53, .12); }

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.timeline-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.timeline-card.highlight {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tag-live {
  background: rgba(163, 230, 53, .12);
  color: var(--lime);
  border: 1px solid rgba(163, 230, 53, .3);
}

.timeline-company {
  color: var(--text);
  margin: 6px 0 2px;
  font-size: 14px;
}

.timeline-period {
  color: var(--text-muted);
  margin: 0 0 12px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.timeline-card p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 15px;
}

.timeline-card strong { color: var(--text); font-weight: 600; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* -------------------------------- Education ---------------------------- */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}

.edu-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.edu-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.edu-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.edu-inst {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
}

.edu-area {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* -------------------------------- Contact ------------------------------ */

.contact-card {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-lead {
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 640px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--cyan);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-btn > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.contact-value {
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -------------------------------- Footer ------------------------------- */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer p { margin: 0; }

/* -------------------------------- To Top ------------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0a12;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-md);
  z-index: 40;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover { transform: translateY(-2px); }

/* -------------------------------- Reveal on scroll --------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------- Responsive --------------------------- */

@media (max-width: 780px) {
  /* Mobile: fundo preto com azul de verdade — garantido no body */
  body {
    background:
      radial-gradient(1200px 800px at 50% -10%, rgba(59, 130, 246, .35) 0%, transparent 60%),
      radial-gradient(900px 600px at 90% 40%, rgba(37, 99, 235, .22) 0%, transparent 65%),
      linear-gradient(180deg, #050614 0%, #030309 100%);
    background-attachment: fixed;
  }

  /* Blobs em azul mais vibrante e visível */
  .blob { filter: blur(90px); opacity: .55; width: 380px; height: 380px; animation: none; }
  .blob-1 { background: #3b82f6; top: -140px; left: -120px; }
  .blob-2 { background: #2563eb; top: auto; bottom: 15%; right: -160px; opacity: .45; }
  .blob-3 { display: none; }

  /* Sem overlay preto por cima — o body já dá o tom azul */
  .aurora::after { display: none; }

  /* Grid discreto */
  .grid-overlay { opacity: .5; }

  /* Texto do lead volta a ser claro no mobile */
  .hero-lead { color: var(--text); }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    background: rgba(5, 5, 11, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: 60px; }
  .section { padding: 64px 20px; }
  .hero-meta { gap: 20px 30px; }
  .contact-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .badge-dot { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
