/* ============================================
   Guilherme Crepaldi — Portfolio
   Dark theme, inspired by Framer design
   ============================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  --bg: #000102;
  --bg-card: #070b10;
  --bg-card-hover: #0c121c;
  --border: rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.06);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.66);
  --text-tertiary: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.56);
  --accent: #39ffb6;
  --accent-dim: rgba(57,255,182,0.78);
  --accent-bg: rgba(57,255,182,0.08);
  --accent-border: rgba(57,255,182,0.20);
  --pill-bg: rgba(255,255,255,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --content-width: 960px;
  --nav-height: 52px;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Floating Navigation --- */
.nav-floating {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  min-width: 580px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,1,2,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 16px;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(57,255,182,0.4);
}

.nav-name {
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.66);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(20,100,180,0.20) 0%, rgba(100,40,200,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --- Pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,0.03);
}

.pill .icon-sm { width: 14px; height: 14px; color: rgba(255,255,255,0.72); }
.pill-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

/* --- Hero Typography --- */
.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  color: var(--text);
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 560px;
}

/* --- Buttons --- */
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.btn-whatsapp-hero:hover {
  border-color: #25D366;
  color: #25D366;
}

.btn-whatsapp-hero:hover .whatsapp-icon {
  color: #25D366;
}

.btn-outline {
  background: rgb(18, 28, 36);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.13);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.btn-outline.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.btn-outline.whatsapp:hover .whatsapp-icon {
  color: #25D366;
}

.btn-icon .arrow-icon {
  width: 16px;
  height: 16px;
}

.icon-github {
  width: 18px;
  height: 18px;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  transition: color 0.2s;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.stat-dot { opacity: 0.4; }

/* ============================================
   Section General
   ============================================ */
.section {
  padding: 100px 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}

.section-eyebrow .icon-sm {
  width: 14px; height: 14px;
  color: rgba(255,255,255,0.62);
}

.section-eyebrow.green .eyebrow-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dim);
  background: var(--accent-bg);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ============================================
   Sobre / About
   ============================================ */
.about-card {
  display: flex;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}

.about-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.about-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.about-role {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--accent-dim);
  margin-top: 4px;
}

.about-stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--pill-bg);
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.about-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
}

/* Automation Tech Tags */
.automation-techs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.automation-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

/* Tech Strip */
.tech-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
}

.tech-icon.python { background: linear-gradient(135deg, #306998, #FFD43B); }
.tech-icon.javascript { background: #F7DF1E; color: #000; }
.tech-icon.html { background: #E34F26; }
.tech-icon.react { background: #61DAFB; color: #000; }
.tech-icon.typescript { background: #3178C6; }

/* ============================================
   Stacks / Cards Grid
   ============================================ */
.stacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.icon-lg {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.65);
}

.stack-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}

.stack-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Automation Note */
.automation-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  background: var(--bg-card);
}

.note-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dim);
}

.note-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: all 0.25s;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: var(--accent-bg);
}

.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.lang-dot.html { background: #E34F26; }
.lang-dot.python { background: var(--accent); }
.lang-dot.php { background: #777BB4; }
.lang-dot.markdown { background: #6b7280; }

.arrow-icon {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.55);
  transition: transform 0.2s;
}

.project-card:hover .arrow-icon {
  transform: translate(3px, -3px);
}

.arrow-icon.white { color: #000; }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}

.project-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.project-bottom {
  margin-top: auto;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.50);
  background: var(--pill-bg);
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ============================================
   Contato / Contact
   ============================================ */
.contact-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

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

.contact-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.08;
  color: var(--text);
}

.contact-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  margin-top: 80px;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-icon {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-icon:hover {
  color: var(--text);
}

.footer-icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.8s ease-out; }
.section { animation: fadeInUp 0.6s ease-out; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .nav-floating { min-width: unset; width: 92%; top: 12px; }
  
  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .section-title { font-size: 32px; }
  .contact-title { font-size: 30px; }

  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-header { flex-direction: column; align-items: center; }
  .about-bio { max-width: 100%; }
  .tech-strip { justify-content: center; }

  .stacks-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  
  .contact-card { padding: 32px 24px; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { justify-content: center; }

  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .nav-links a { padding: 6px 10px; font-size: 11px; }
  .hero-title { font-size: 32px; }
  .about-avatar { width: 100px; height: 100px; }
}
