/* ==========================================================================
   TIAGO CUSTÓDIO — INTERACTIVE PARALLAX PORTFOLIO
   Modern & Futuristic Dark UI | 3D Depth | Bento Grid | Micro-Interactions
   ========================================================================== */

:root {
  --bg-deep: #040711;
  --bg-surface: #0a1022;
  --bg-card: rgba(13, 21, 42, 0.68);
  --bg-card-hover: rgba(19, 30, 58, 0.85);
  --bg-glass: rgba(10, 16, 34, 0.75);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-bright: rgba(6, 182, 212, 0.45);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container-max: 1260px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-deep);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 99px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   SCROLL PROGRESS & CUSTOM CURSOR GLOW
   ========================================================================== */

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-purple));
  box-shadow: 0 0 14px var(--accent-cyan);
  z-index: 9999;
  transition: width 0.06s linear;
}

.cursor-spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   MULTI-LAYER PARALLAX BACKGROUND
   ========================================================================== */

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

#cyber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.parallax-grid-plane {
  position: absolute;
  inset: -30% -10%;
  background-image:
    linear-gradient(to right, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  will-change: transform;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.35;
  will-change: transform;
}

.orb-cyan {
  width: 480px;
  height: 480px;
  background: var(--accent-cyan);
  top: -8%;
  left: -6%;
}

.orb-purple {
  width: 540px;
  height: 540px;
  background: var(--accent-purple);
  top: 32%;
  right: -12%;
}

.orb-emerald {
  width: 440px;
  height: 440px;
  background: var(--accent-emerald);
  bottom: -10%;
  left: 20%;
}

/* ==========================================================================
   FLOATING NAVIGATION HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, var(--container-max));
  z-index: 1000;
  transition: all 0.35s var(--transition-smooth);
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(8, 13, 28, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #030712;
  box-shadow: 0 0 18px var(--accent-cyan-glow);
}

.brand-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s var(--transition-smooth);
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #020617;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.52);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  background: var(--accent-emerald);
  color: #020617;
  box-shadow: 0 8px 25px var(--accent-emerald-glow);
}

/* ==========================================================================
   LAYOUT & PARALLAX UTILITIES
   ========================================================================== */

main {
  position: relative;
  z-index: 2;
}

.container {
  width: min(92%, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #67e8f9 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* Huge decorative background parallax words */
.parallax-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.022);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  will-change: transform;
}

/* ==========================================================================
   HERO SECTION WITH MULTI-LAYER 3D PARALLAX
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 56px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero-role-rotator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent-cyan);
  margin-bottom: 24px;
  min-height: 2rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 10px;
  height: 1.3em;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blinkCursor 0.9s infinite;
}

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

.hero-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.social-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* 3D Parallax Portrait Stage */
.hero-visual-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.portrait-orbital-system {
  position: relative;
  width: 390px;
  height: 390px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.orbital-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.35);
  animation: spinSlow 32s linear infinite;
}

.orbital-ring-outer {
  inset: -28px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-purple);
  animation: spinSlowReverse 24s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.portrait-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-emerald));
  box-shadow:
    0 0 60px rgba(6, 182, 212, 0.28),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 3;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #040711;
}

/* Floating Parallax Satellites around Portrait */
.floating-satellite {
  position: absolute;
  z-index: 5;
  background: rgba(10, 16, 34, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

.floating-satellite img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.satellite-meta {
  display: flex;
  flex-direction: column;
}

.satellite-meta strong {
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.satellite-meta span {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.sat-top-left {
  top: -10px;
  left: -35px;
}

.sat-top-right {
  top: 25px;
  right: -45px;
}

.sat-bottom-left {
  bottom: 12px;
  left: -42px;
}

.sat-bottom-right {
  bottom: -16px;
  right: -25px;
}

/* ==========================================================================
   STATS RIBBON (PARALLAX DEPTH BAR)
   ========================================================================== */

.stats-ribbon {
  position: relative;
  z-index: 4;
  margin-top: -20px;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 32px;
  background: rgba(10, 16, 34, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.stat-item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-value span {
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BENTO GRID SKILLS ("ARSENAL TECNOLÓGICO")
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.35s var(--transition-smooth), border-color 0.35s ease, box-shadow 0.35s ease;
  backdrop-filter: blur(14px);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 182, 212, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.bento-card[data-accent="emerald"] .bento-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.bento-card[data-accent="purple"] .bento-icon {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

.bento-card[data-accent="amber"] .bento-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bento-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.skill-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  width: 0%;
  transition: width 1.1s var(--transition-smooth);
}

.bento-card[data-accent="emerald"] .skill-fill {
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
}

/* ==========================================================================
   CERTIFICATES VAULT (3D TILT CARDS + OFFICIAL BADGES + PDF MODAL)
   ========================================================================== */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(6, 182, 212, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #020617;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.35);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cert-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.cert-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(6, 182, 212, 0.15);
}

.cert-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cert-badge-wrap {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  display: grid;
  place-items: center;
  transform: translateZ(24px);
}

.cert-badge-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.cert-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.cert-competencies {
  list-style: none;
  margin: 14px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-competencies li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.cert-competencies li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.cert-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PROJECTS & LIVE GITHUB SYNC
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

.project-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.project-code-preview {
  background: #03060f;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a5f3fc;
  overflow-x: auto;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.github-live-banner {
  margin-top: 38px;
  padding: 24px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================================================
   SCROLL-DRIVEN LASER TIMELINE (CV)
   ========================================================================== */

.timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 44px;
}

.timeline-track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.timeline-laser-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-emerald), var(--accent-purple));
  box-shadow: 0 0 16px var(--accent-cyan);
  border-radius: 99px;
  transition: height 0.12s ease-out;
}

.timeline-item {
  position: relative;
  margin-bottom: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--transition-smooth);
}

.timeline-item:hover {
  transform: translateX(8px);
  border-color: var(--border-bright);
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 32px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
}

.timeline-item[data-type="work"] .timeline-dot {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 14px var(--accent-emerald);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
}

.timeline-type-badge {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.timeline-highlights li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}

.timeline-highlights li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--accent-cyan);
}

/* ==========================================================================
   INTERACTIVE CYBER TERMINAL
   ========================================================================== */

.terminal-window {
  background: #03060e;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  max-width: 920px;
  margin: 0 auto;
}

.terminal-bar {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.terminal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(10, 16, 34, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-chip:hover {
  background: var(--accent-cyan);
  color: #020617;
}

.terminal-body {
  padding: 22px;
  height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

.term-line {
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 700;
}

.term-output {
  color: #cbd5e1;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 13, 28, 0.9);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

/* ==========================================================================
   CONTACT SECTION & FOOTER
   ========================================================================== */

.contact-card {
  background: linear-gradient(135deg, rgba(13, 21, 42, 0.88), rgba(10, 16, 34, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateX(6px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(3, 6, 15, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   CERTIFICATE PDF LIGHTBOX MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(1040px, 96vw);
  height: min(86vh, 820px);
  background: var(--bg-surface);
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

.modal-header {
  padding: 16px 24px;
  background: rgba(4, 7, 17, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-body {
  flex: 1;
  background: #0f172a;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .hero-visual-stage {
    margin-top: 24px;
  }
  .col-span-7, .col-span-5, .col-span-4 {
    grid-column: span 12;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .portrait-orbital-system {
    width: 300px;
    height: 300px;
  }
  .portrait-frame {
    width: 230px;
    height: 230px;
  }
  .floating-satellite {
    padding: 7px 10px;
  }
  .floating-satellite img {
    width: 30px;
    height: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .contact-card {
    padding: 32px 22px;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER (PT / EN)
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #020617;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

