/* ==============================================================================
   DESIGN SYSTEM - DARK BENTO GRID
   Márcio Reis — Software Portfolio
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --bg-main: #08090d;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151928 0%, #08090d 70%);
  --surface-card: rgba(16, 20, 29, 0.75);
  --surface-card-hover: rgba(22, 28, 42, 0.9);
  --surface-inner: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Badges & Status */
  --status-prod-bg: rgba(16, 185, 129, 0.12);
  --status-prod-border: rgba(16, 185, 129, 0.3);
  --status-prod-text: #34d399;
  --status-prod-dot: #10b981;

  --status-dev-bg: rgba(245, 158, 11, 0.12);
  --status-dev-border: rgba(245, 158, 11, 0.3);
  --status-dev-text: #fbbf24;
  --status-dev-dot: #f59e0b;

  --status-apos-bg: rgba(148, 163, 184, 0.08);
  --status-apos-border: rgba(148, 163, 184, 0.2);
  --status-apos-text: #94a3b8;
  --status-apos-dot: #64748b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Subtle Grid Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dev-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.dev-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dev-meta h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--surface-inner);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero Statement */
.hero-section {
  padding: 3rem 0 2rem;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
}

/* Filter Controls */
.filter-bar {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--text-primary);
  color: #090a0d;
  border-color: var(--text-primary);
  font-weight: 600;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 0.25rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card.span-2 {
    grid-column: span 2;
  }
}

/* Bento Card Style */
.bento-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Glow Effect Following Mouse */
.bento-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

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

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.project-img-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.arrow-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 1.2rem;
  line-height: 1;
}

.bento-card:hover .arrow-icon {
  color: var(--text-accent);
  transform: translateX(3px) translateY(-3px);
}

/* Badges */
.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* Status Badge - Produção */
.badge-status-producao {
  background: var(--status-prod-bg);
  color: var(--status-prod-text);
  border: 1px solid var(--status-prod-border);
}

.badge-status-producao .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-prod-dot);
  box-shadow: 0 0 8px var(--status-prod-dot);
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Status Badge - Em Construção */
.badge-status-construcao {
  background: var(--status-dev-bg);
  color: var(--status-dev-text);
  border: 1px solid var(--status-dev-border);
}

.badge-status-construcao .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-dev-dot);
  box-shadow: 0 0 6px var(--status-dev-dot);
}

/* Status Badge - Aposentado */
.badge-status-aposentado {
  background: var(--status-apos-bg);
  color: var(--status-apos-text);
  border: 1px solid var(--status-apos-border);
}

.badge-status-aposentado .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-apos-dot);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.badge-category {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* Card Body */
.card-body {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.project-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Tech Stack Tags */
.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==============================================================================
   PÁGINAS INDIVIDUAIS DE PROJETOS
   ============================================================================== */

.project-page-header {
  padding: 2.5rem 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  background: var(--surface-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateX(-3px);
}

.project-hero {
  margin-bottom: 2.5rem;
}

.project-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-hero-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.project-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Action Buttons (Google Play, Web, Code) */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  background: #ffffff;
  color: #090a0d;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: not-allowed;
}

/* Project Detail Layout */
.project-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 900px) {
  .project-content-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-section {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.detail-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.detail-section p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

/* Feature List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text-accent);
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sidebar Info Card */
.specs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.specs-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
}

.specs-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

/* Galeria de Screenshots */
.screenshots-section {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.screenshots-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.screenshot-card {
  background: var(--surface-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

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

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 1.5rem;
  text-align: center;
}