/* ============================================================
   NOIR CYBER EDITORIAL — Personal Portfolio CSS
   ============================================================ */

/* ============================================================
   FONTS
   Orbitron is loaded from HTML and used across the site.
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  --bg:               #080a0e;
  --bg-secondary:     #0f1117;
  --bg-card:          #141820;
  --border:           #1e2533;
  --accent:           #00d4aa;
  --accent-hover:     #00ffcc;
  --accent-secondary: #ff6b35;
  --text-primary:     #e8ecf0;
  --text-secondary:   #8892a4;
  --text-muted:       #4a5568;
  --green-terminal:   #00ff88;

  --font-heading: 'Orbitron', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Grotesk', sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --nav-height: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

/* Selection */
::selection {
  background-color: var(--accent);
  color: #080a0e;
}

::-moz-selection {
  background-color: var(--accent);
  color: #080a0e;
}

/* Base elements */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--text-primary);
}

p {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.container {
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-padding {
  padding: 6rem 2rem;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 0.75rem;
  margin-bottom: 3rem;
}

/* Explicit decorative line element */
.title-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin-bottom: 3rem;
  border: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: rgba(8, 10, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background-color: rgba(8, 10, 14, 0.95);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

/* Nav inner wrapper */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-hack {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

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

.logo-cursor {
  color: var(--accent);
  animation: cursor-blink 1s step-end infinite;
  font-size: 18px;
  line-height: 1;
  margin-left: 1px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-logo:hover .logo-prompt,
.nav-logo:hover .logo-cursor {
  color: var(--accent-hover);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-fast);
  transform-origin: center;
}

.hamburger:hover span {
  background-color: var(--accent);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--accent);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--accent);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 2rem;
  left: 2rem;
  z-index: 105;
  padding: 0.85rem;
  border: 1px solid rgba(136, 146, 164, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 24, 32, 0.96), rgba(8, 10, 14, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear var(--transition-base);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  transition-delay: 0s;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-weight: 700;
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
  background-color: rgba(0, 212, 170, 0.08);
}

main,
section,
.hero-content,
.about-grid,
.about-text,
.timeline,
.timeline-item,
.timeline-content,
.cert-card,
.edu-card,
.contact-grid,
.contact-card,
.contact-info,
.article-card {
  min-width: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow-x: clip;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
  background: radial-gradient(ellipse at center, #0f1824 0%, #080a0e 70%);
}

/* Scanlines overlay — excluded from hero text area */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero content sits above scanlines */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
}

/* Hero name */
#hero h1,
.hero-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.5;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-bottom: 0.25em;
  max-width: 100%;
}

/* Hero subtitle */
.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Hero tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #080a0e;
  padding: 12px 28px;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition:
    filter var(--transition-fast),
    transform var(--transition-fast),
    background-color var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--accent);
  padding: 12px 28px;
  border: 1px solid var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(0, 212, 170, 0.1);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* NASA / achievement badge */
.nasa-badge {
  position: absolute;
  top: 6rem;
  right: 2rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Subtle ambient glow behind hero text */
#hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100vw - 2rem));
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

#sobre {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* About grid: photo + text */
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Profile picture */
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.profile-pic:hover {
  border-color: var(--accent);
}

/* If it's an <img> element instead */
.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* About body text */
.about-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.signal-term {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-right: 0.18rem;
  padding: 0.08rem 0 0.12rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
}

.signal-term::before {
  content: '>_';
  font-size: 0.72em;
  opacity: 0.9;
  transform: translateY(-0.04em);
  animation: signal-flicker 3.8s steps(2, end) infinite;
}

.signal-term::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14rem;
  height: 1px;
  opacity: 0.85;
  transform-origin: left center;
  animation: signal-scan 4.5s ease-in-out infinite;
}

.signal-term-pentester {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 212, 170, 0.16);
}

.signal-term-pentester::before,
.signal-term-pentester::after {
  color: var(--accent);
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.95), transparent);
}

.signal-term-consulting {
  color: #d7f7ee;
  text-shadow: 0 0 12px rgba(0, 212, 170, 0.14);
}

.signal-term-consulting::before {
  color: #d7f7ee;
}

.signal-term-consulting::after {
  background: linear-gradient(90deg, transparent, rgba(215, 247, 238, 0.85), transparent);
}

.signal-term-communicator {
  color: var(--accent-secondary);
  text-shadow: 0 0 14px rgba(255, 107, 53, 0.16);
}

.signal-term-communicator::before,
.signal-term-communicator::after {
  color: var(--accent-secondary);
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.95), transparent);
}

@keyframes signal-flicker {
  0%, 19%, 23%, 78%, 100% {
    opacity: 0.9;
  }

  20%, 22%, 79% {
    opacity: 0.45;
  }
}

@keyframes signal-scan {
  0%, 100% {
    transform: scaleX(0.3);
    opacity: 0.45;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Tags / specialty pills */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent-secondary);
  background-color: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.tag:hover {
  background-color: rgba(255, 107, 53, 0.18);
  border-color: rgba(255, 107, 53, 0.5);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */

#experiencia {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
}

#experiencia .section-title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#experiencia .title-line {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline container */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

/* Timeline item */
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot / icon */
.timeline-dot {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 16px rgba(0, 212, 170, 0.3);
  transition: box-shadow var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 24px rgba(0, 212, 170, 0.5);
}

/* Timeline card */
.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  flex: 1;
  min-width: 0;
  transition: border-color var(--transition-base);
}

.timeline-content > div[style],
.timeline-content ul {
  min-width: 0;
  width: 100%;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(0, 212, 170, 0.3);
}

/* Company name */
.timeline-company {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}

/* Period */
.timeline-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}

/* Role / description */
.timeline-role {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.timeline-role li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-role li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */

#certificacoes {
  padding: 6rem 2rem;
}

#certificacoes > .section-title,
#certificacoes > .container > .section-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Cert grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Cert card */
.cert-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  cursor: default;
}

.cert-card:hover {
  border-color: rgba(0, 212, 170, 0.4);
  border-top-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 -2px 12px rgba(0, 212, 170, 0.1);
}

/* Issuer name — top of card */
.cert-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cert-badge::before {
  content: '> ';
  opacity: 0.45;
}

/* Cert name text */
.cert-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ============================================================
   EDUCATION
   ============================================================ */

#formacao {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
}

/* Education grid */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Education card */
.edu-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.edu-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
  border-left-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Degree */
.edu-degree {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Institution */
.edu-institution {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

/* Education period */
.edu-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ============================================================
   TERMINAL SECTION
   ============================================================ */

#terminal {
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
  text-align: center;
  background-color: var(--bg);
}

/* Terminal window */
.terminal-window {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 170, 0.18);
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.96), rgba(8, 11, 17, 0.98));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
}

/* Terminal title bar */
.terminal-header {
  height: 46px;
  background:
    linear-gradient(180deg, rgba(30, 35, 46, 0.98), rgba(17, 21, 30, 0.96));
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
}

/* Traffic light buttons */
.terminal-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.terminal-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.terminal-btn-close    { background-color: #ff5f57; }
.terminal-btn-minimize { background-color: #ffbd2e; }
.terminal-btn-maximize { background-color: #28c840; }

/* Terminal window title */
.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8d9aae;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Terminal body */
.terminal-body {
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0.98), rgba(5, 9, 15, 1)),
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.045), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.025), transparent 22%);
  min-height: 280px;
  max-height: 480px;
  padding: 1.55rem 1.45rem 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}

.terminal-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 26px, 26px 100%;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 88%);
  pointer-events: none;
  opacity: 0.14;
}

.terminal-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.035), transparent);
  pointer-events: none;
  opacity: 0.9;
}

/* Output area — grows naturally, no internal scroll */
.terminal-output {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #dce9e5;
  line-height: 1.78;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Specific output colors */
.terminal-output .t-comment { color: #8390a2; }
.terminal-output .t-warn    { color: #f7cf7d; }
.terminal-output .t-error   { color: #ff9a9a; }
.terminal-output .t-success { color: #94f6dc; }
.terminal-output .t-accent  { color: #00d4aa; }
.terminal-output .t-dim     { color: #667689; }

/* Terminal line structure */
.t-line {
  display: block;
  white-space: pre-wrap;
  line-height: 1.78;
  margin: 0.18rem 0;
  padding: 0.14rem 0;
}

.t-banner {
  line-height: 1.42;
  margin: 0.02rem 0;
  padding: 0.02rem 0;
}

.t-banner-gap {
  display: block;
  height: 0.42rem;
  line-height: 0.42rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.t-banner-live {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.02rem 0.12rem 0.02rem 0.02rem;
  color: #94f6dc;
  text-shadow: 0 0 12px rgba(148, 246, 220, 0.16);
}

.t-banner-live-icon {
  display: inline-block;
  color: #8ff7dd;
  text-shadow:
    0 0 10px rgba(143, 247, 221, 0.22),
    0 0 18px rgba(0, 212, 170, 0.12);
  animation: banner-icon-flicker 1.4s steps(2, end) infinite;
}

.t-banner-live-text {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 0;
  border-right: 1px solid rgba(148, 246, 220, 0.85);
  animation:
    banner-type 1.05s steps(25, end) forwards,
    banner-caret 1.05s step-end 1 forwards,
    banner-breathe 2.2s ease-in-out 1.1s infinite;
}

@keyframes banner-type {
  from {
    width: 0;
    opacity: 0.35;
  }
  to {
    width: 25ch;
    opacity: 1;
  }
}

@keyframes banner-caret {
  0%, 85% { border-right-color: rgba(148, 246, 220, 0.85); }
  100% { border-right-color: transparent; }
}

@keyframes banner-icon-flicker {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.78; transform: translateX(0.5px); }
}

@keyframes banner-breathe {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(148, 246, 220, 0.16);
  }
  50% {
    opacity: 0.82;
    text-shadow:
      0 0 14px rgba(148, 246, 220, 0.2),
      0 0 24px rgba(148, 246, 220, 0.08);
  }
}

.t-response {
  position: relative;
  border-radius: 10px;
}

.t-response:not(.t-accent):not(.t-copy) {
  padding: 0.34rem 0.72rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008) 58%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.t-response:not(.t-accent):not(.t-copy)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  bottom: 0.42rem;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.38), rgba(0, 212, 170, 0.05));
}

.t-copy {
  padding: 0.8rem 0.95rem;
  border-left: 2px solid rgba(0, 212, 170, 0.28);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.055), rgba(255, 255, 255, 0.01));
  color: #e3eeeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.t-subhead {
  color: #edf7f3;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-top: 0.1rem;
}

.t-list {
  color: #cdd9d7;
  padding-left: 0.35rem;
}

.t-subtext {
  color: #c4d0dd;
  padding-left: 0.35rem;
}

.t-echo .t-prompt-sym {
  color: var(--accent);
  user-select: none;
}

.t-echo {
  color: #f2fbf8;
  margin-top: 0.9rem;
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(0, 212, 170, 0.12);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.07), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.t-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 0.7rem;
  margin-bottom: 0.15rem;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.15);
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.1), rgba(0, 212, 170, 0.035));
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.86em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.t-accent::before {
  content: '>';
  color: rgba(0, 212, 170, 0.8);
}

.t-success,
.t-warn,
.t-error {
  padding-left: 1rem;
  position: relative;
}

.t-success::before,
.t-warn::before,
.t-error::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.38rem;
  bottom: 0.38rem;
  width: 2px;
  border-radius: 999px;
}

.t-success::before {
  background: linear-gradient(180deg, rgba(127, 255, 212, 0.95), rgba(0, 212, 170, 0.3));
}

.t-warn::before {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.95), rgba(255, 209, 102, 0.3));
}

.t-error::before {
  background: linear-gradient(180deg, rgba(255, 143, 143, 0.95), rgba(255, 143, 143, 0.3));
}

.t-dim {
  opacity: 0.9;
}

/* Cursor blink */
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--green-terminal);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* Input row */
.terminal-input-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.9rem;
  flex-shrink: 0;
}

/* Prompt prefix */
.prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-terminal);
  margin-right: 0.35rem;
  white-space: nowrap;
  user-select: none;
  opacity: 0.92;
}

/* Input field */
.terminal-input {
  all: unset;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f1faf7;
  flex: 1;
  min-width: 0;
  caret-color: var(--green-terminal);
  background: transparent;
  border: none;
  outline: none;
}

.terminal-input::placeholder {
  color: #607086;
}

/* Terminal hint text */
.terminal-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: #6d7b8e;
  margin-top: 1.05rem;
  text-align: center;
  letter-spacing: 0.035em;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

#contato {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
}

/* Contact grid */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact card */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition:
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(180px, 100%);
  max-width: 100%;
}

.contact-info {
  width: 100%;
  min-width: 0;
}

.contact-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Card icon wrapper */
.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 212, 170, 0.1);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background-color var(--transition-base);
}

.contact-card:hover .contact-icon {
  background-color: rgba(0, 212, 170, 0.18);
}

/* Card label */
.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

/* Card value / handle */
.contact-value {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.contact-card:hover .contact-value {
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  background-color: var(--bg);
}

.footer p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Footer links row */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================================
   SUPPLEMENTAL: BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.badge-accent {
  color: var(--accent);
  background-color: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.badge-orange {
  color: var(--accent-secondary);
  background-color: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

/* ============================================================
   SUPPLEMENTAL: SKILLS / PROGRESS
   ============================================================ */

.skill-bar {
  margin-bottom: 1rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.skill-bar-track {
  height: 3px;
  background-color: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ============================================================
   SUPPLEMENTAL: WRITING / ARTICLES GRID
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.article-card:hover {
  border-color: rgba(0, 212, 170, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.article-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--accent);
}

.article-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.article-read-more {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.article-card:hover .article-read-more {
  gap: 0.6rem;
}

/* ============================================================
   SUPPLEMENTAL: DIVIDER
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ============================================================
   SUPPLEMENTAL: GLITCH EFFECT (optional, apply via JS)
   ============================================================ */

@keyframes glitch-shift {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  25%  { clip-path: inset(50% 0 30% 0); transform: translate(2px, 0); }
  50%  { clip-path: inset(20% 0 70% 0); transform: translate(-1px, 0); }
  75%  { clip-path: inset(80% 0 10% 0); transform: translate(1px, 0); }
  100% { clip-path: inset(0 0 95% 0); transform: translate(0, 0); }
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--accent);
  animation: glitch-shift 3s infinite linear alternate-reverse;
  opacity: 0.7;
}

.glitch::after {
  color: var(--accent-secondary);
  animation: glitch-shift 2.5s infinite linear alternate;
  opacity: 0.5;
}

/* ============================================================
   SUPPLEMENTAL: FLOATING PARTICLES (canvas backdrop)
   ============================================================ */

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .contact-grid {
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 150px 1fr;
    gap: 2rem;
  }

  .profile-pic {
    width: 150px;
    height: 150px;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ============================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
  }

  /* Nav */
  .nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    left: 1.25rem;
    right: 1.25rem;
  }

  /* Hide NASA badge on small screens */
  .nasa-badge {
    display: none;
  }

  /* Hero */
  #hero h1,
  .hero-name {
    font-size: clamp(1.9rem, 8.5vw, 3rem);
    letter-spacing: -1px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-tagline {
    font-size: 1rem;
    max-width: 32rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .about-text {
    width: 100%;
    text-align: center;
  }

  .about-tags {
    justify-content: center;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  /* Timeline */
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    gap: 1.25rem;
  }

  .timeline-dot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  /* Cert grid: 1–2 columns */
  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Education grid */
  .edu-grid {
    grid-template-columns: 1fr;
  }

  /* Articles grid */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
    padding: 1.5rem 2rem;
  }

  /* Footer */
  .footer-links {
    gap: 1rem;
  }

  /* Terminal */
  .terminal-window {
    border-radius: var(--radius-md);
  }

  .terminal-body {
    padding: 1rem;
    min-height: 240px;
    max-height: 360px;
  }

  .terminal-output {
    font-size: 11px;
  }

  .terminal-input,
  .prompt {
    font-size: 12px;
  }

  .terminal-hint {
    font-size: 12px;
  }

  /* Timeline text wrap */
  .timeline-company {
    font-size: 1rem;
  }

  .timeline-period {
    font-size: 11px;
  }

  .timeline-role {
    font-size: 13px;
  }
}

/* ============================================================
   RESPONSIVE: VERY SMALL (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {

  .nav {
    padding: 0 1rem;
  }

  .mobile-menu {
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    padding: 0.7rem;
  }

  #hero,
  #sobre,
  #experiencia,
  #certificacoes,
  #formacao,
  #terminal,
  #contato {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #hero h1,
  .hero-name {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

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

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 0.75rem;
  }

  .timeline-dot {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .terminal-body {
    min-height: 200px;
    max-height: 320px;
    padding: 0.75rem;
  }

  .terminal-output {
    font-size: 10px;
  }

  .terminal-input,
  .prompt {
    font-size: 11px;
  }

  .contact-card {
    padding: 1.25rem 1.5rem;
  }
}
/* Orbitron v5 */
