/* ==========================================================================
   DESIGN SYSTEM — TONS DE JOIAS PROFUNDOS (PALETA SOFISTICADA)
   Portfólio Daniel Azevêdo
   ========================================================================== */

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

:root {
  /* Paleta Solicitada pelo Usuário (Tons de Joias Profundos) */
  --color-bg: #1A1A1A;             /* Preto intenso (fundo) */
  --color-text: #F0F0F0;           /* Branco-sujo (texto principal) */
  --color-accent-1: #004D61;       /* Verde-azulado escuro / Deep Teal */
  --color-accent-2: #822659;       /* Rubi profundo / Deep Ruby */
  --color-cta: #3E5641;            /* Verde floresta (Botões e Ações) */

  /* Variações e Superfícies Derivadas */
  --bg-body: #1A1A1A;
  --bg-surface: #202020;
  --bg-card: #242424;
  --bg-card-hover: #292929;
  --bg-glass: rgba(26, 26, 26, 0.94);
  --bg-elevated: #2e2e2e;

  /* Cores de Texto e Hierarquia */
  --text-primary: #F0F0F0;
  --text-secondary: #c0c0c0;
  --text-muted: #888888;
  --text-highlight: #ffffff;

  /* Tons de Destaque / Joias */
  --accent-teal: #004D61;
  --accent-teal-light: #0e6c85;
  --accent-teal-glow: rgba(0, 77, 97, 0.35);

  --accent-ruby: #822659;
  --accent-ruby-light: #a33572;
  --accent-ruby-glow: rgba(130, 38, 89, 0.35);

  --accent-forest: #3E5641;
  --accent-forest-hover: #4c684f;
  --accent-forest-light: #58795c;
  --accent-forest-glow: rgba(62, 86, 65, 0.35);

  /* Gradientes Nobres */
  --gradient-brand: linear-gradient(135deg, #004D61 0%, #3E5641 50%, #822659 100%);
  --gradient-ruby: linear-gradient(135deg, #822659 0%, #a33572 100%);
  --gradient-teal: linear-gradient(135deg, #004D61 0%, #0e6c85 100%);
  --gradient-cta: linear-gradient(135deg, #3E5641 0%, #4c684f 100%);
  --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Tipografia */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Bordas e Sombras */
  --border-subtle: rgba(240, 240, 240, 0.08);
  --border-card: rgba(240, 240, 240, 0.1);
  --border-focus: #004D61;
  --border-highlight: rgba(130, 38, 89, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 77, 97, 0.2);

  /* Transições */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Efeito de Luz de Fundo com os Tons Nobres */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 77, 97, 0.15) 0%, transparent 70%);
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(130, 38, 89, 0.12) 0%, transparent 70%);
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #F0F0F0;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 77, 97, 0.4);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 77, 97, 0.4);
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.06);
}

.brand-text {
  color: #F0F0F0;
}

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

.mobile-menu-cta {
  display: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #F0F0F0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cta);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--color-cta);
  color: #F0F0F0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-forest-hover);
  box-shadow: 0 0 20px var(--accent-forest-glow);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(62, 86, 65, 0.25);
  border: 1px solid rgba(62, 86, 65, 0.5);
  border-radius: var(--radius-full);
  color: #a3d9a5;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #5bb361;
  box-shadow: 0 0 10px #5bb361;
  position: relative;
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid #5bb361;
  animation: ripple-status 2s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes ripple-status {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.hero-title .gradient-text {
  background: linear-gradient(
    135deg,
    #F0F0F0 0%,
    #00b4d8 25%,
    #F0F0F0 50%,
    #76c893 75%,
    #ff85a1 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 8s ease infinite alternate;
}

@keyframes shimmer-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e5e5e5;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-subtitle .separator {
  color: var(--color-accent-1);
  opacity: 0.8;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-cta);
  color: #F0F0F0;
  box-shadow: 0 6px 20px rgba(62, 86, 65, 0.4);
}

.btn-primary:hover {
  background: var(--accent-forest-hover);
  box-shadow: 0 8px 25px rgba(62, 86, 65, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #242424;
  border-color: var(--border-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #2c2c2c;
  border-color: var(--color-accent-1);
  color: #F0F0F0;
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Card do Hero */
.hero-visual {
  position: relative;
}

.hero-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.hero-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--gradient-brand);
  padding: 3px;
  box-shadow: 0 6px 20px rgba(0, 77, 97, 0.3);
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  background: #1A1A1A;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #F0F0F0;
}

.profile-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.profile-info span {
  font-size: 0.9rem;
  color: #c4d6dc;
  font-weight: 500;
}

.profile-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-details-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.profile-details-list .label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-details-list .value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-pill {
  padding: 6px 12px;
  background: rgba(0, 77, 97, 0.2);
  border: 1px solid rgba(0, 77, 97, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1ecf1;
  transition: all var(--transition-fast);
}

.stack-pill:hover {
  background: rgba(0, 77, 97, 0.35);
  border-color: var(--color-accent-1);
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4da3b8;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   SOBRE MIM
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.about-card p {
  font-size: 1.02rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

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

.highlight-text {
  color: #F0F0F0;
  font-weight: 600;
  border-bottom: 2px solid var(--color-cta);
  padding-bottom: 1px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-box {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.highlight-box:hover {
  border-color: var(--color-accent-1);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: rgba(0, 77, 97, 0.2);
  border: 1px solid rgba(0, 77, 97, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #62bad0;
  font-size: 1.5rem;
}

.highlight-icon.emerald {
  background: rgba(62, 86, 65, 0.25);
  border-color: rgba(62, 86, 65, 0.5);
  color: #a3d9a5;
}

.highlight-icon.purple {
  background: rgba(130, 38, 89, 0.2);
  border-color: rgba(130, 38, 89, 0.4);
  color: #e28cb9;
}

.highlight-body h4 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.highlight-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   STACKS & TECNOLOGIAS
   ========================================================================== */
.stacks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stack-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-1);
  box-shadow: var(--shadow-card-hover);
}

.stack-card.core-stack {
  border-color: rgba(0, 77, 97, 0.4);
  background: linear-gradient(155deg, rgba(0, 77, 97, 0.1) 0%, rgba(36, 36, 36, 0.95) 100%);
}

.stack-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stack-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1A1A1A;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #62bad0;
}

.stack-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.stack-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stack-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 77, 97, 0.3);
  border-color: var(--color-accent-1);
  color: #F0F0F0;
}

/* ==========================================================================
   PROJETOS EM DESTAQUE (HOME) — LAYOUT LATERAL (3 COLUNAS)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.project-card:hover {
  border-color: var(--color-accent-1);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.project-card.featured {
  border-color: rgba(62, 86, 65, 0.6);
  background: linear-gradient(170deg, rgba(62, 86, 65, 0.1) 0%, rgba(36, 36, 36, 0.95) 100%);
}

/* Moldura Visual da Imagem (Sem Cortes!) */
.project-visual {
  position: relative;
  background: #141414;
  height: 220px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-visual img {
  transform: scale(1.03);
}

.project-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 20px;
}

.project-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.badge-production {
  background: rgba(62, 86, 65, 0.3);
  border: 1px solid rgba(62, 86, 65, 0.7);
  color: #b7e4b9;
}

.badge-architecture {
  background: rgba(0, 77, 97, 0.3);
  border: 1px solid rgba(0, 77, 97, 0.7);
  color: #92d6e6;
}

.badge-study {
  background: rgba(130, 38, 89, 0.3);
  border: 1px solid rgba(130, 38, 89, 0.7);
  color: #f1a9cd;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}

.project-tagline {
  font-size: 0.92rem;
  color: #e5e5e5;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-features-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.preview-item svg {
  color: var(--color-cta);
  min-width: 16px;
  margin-top: 3px;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
  color: #dcdcdc;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--color-cta);
  color: #F0F0F0;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-project:hover {
  background: var(--accent-forest-hover);
  box-shadow: 0 4px 15px var(--accent-forest-glow);
  transform: translateY(-2px);
}

.btn-project-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-card);
  color: #dcdcdc;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-project-outline:hover {
  border-color: var(--color-accent-1);
  color: #F0F0F0;
  background: rgba(0, 77, 97, 0.15);
}

/* ==========================================================================
   CONTATO & FOOTER
   ========================================================================== */
.contact-section {
  padding: 90px 0 70px;
  border-top: 1px solid var(--border-subtle);
}

.contact-card {
  background: #222222;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--gradient-brand);
}

.contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.contact-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  background: #1A1A1A;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.contact-btn:hover {
  background: #2a2a2a;
  border-color: var(--color-accent-1);
  color: #F0F0F0;
  transform: translateY(-2px);
}

.contact-btn.primary {
  background: var(--color-cta);
  border-color: var(--accent-forest-hover);
  color: #F0F0F0;
}

.contact-btn.primary:hover {
  background: var(--accent-forest-hover);
  box-shadow: 0 4px 15px var(--accent-forest-glow);
}

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

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #F0F0F0;
}

/* ==========================================================================
   RESPONSIVIDADE APRIMORADA
   ========================================================================== */
@media (max-width: 1140px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    max-width: 500px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header {
    background: rgba(26, 26, 26, 0.98);
  }
  .hero {
    padding: 120px 0 50px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-visual {
    height: 200px;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .mobile-menu-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
  }
  .mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .contact-card {
    padding: 36px 20px;
  }
  .contact-methods {
    flex-direction: column;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-profile-card {
    padding: 22px 16px;
  }
  .profile-details-list li {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
  .profile-tags {
    justify-content: center;
  }
}

/* ==========================================================================
   EFEITOS VISUAIS, ILUMINAÇÃO & ANIMAÇÕES MODERNAS
   ========================================================================== */

/* 1. Orbes de Iluminação Ambiente em Tons de Joias */
.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
  will-change: transform;
}

.ambient-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #004D61 0%, rgba(0, 180, 216, 0.4) 60%, transparent 100%);
  top: -120px;
  right: -80px;
  animation: float-orb-1 18s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #822659 0%, rgba(255, 112, 166, 0.35) 60%, transparent 100%);
  bottom: 8%;
  left: -120px;
  animation: float-orb-2 22s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #3E5641 0%, rgba(102, 187, 106, 0.3) 60%, transparent 100%);
  top: 42%;
  right: 12%;
  animation: float-orb-3 17s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.08); }
  100% { transform: translate(-120px, 30px) scale(0.94); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.12); }
  100% { transform: translate(120px, -20px) scale(0.92); }
}

@keyframes float-orb-3 {
  0% { transform: translate(0, 0) scale(0.92); }
  50% { transform: translate(-40px, -50px) scale(1.1); }
  100% { transform: translate(60px, 40px) scale(1); }
}

/* 2. Cursor Spotlight Dinâmico */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    650px circle at var(--cursor-x, 50vw) var(--cursor-y, 30vh),
    rgba(0, 77, 97, 0.12),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.has-mouse .cursor-spotlight {
  opacity: 1;
}

/* 3. Animações de Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--delay, 0) * 85ms);
  will-change: opacity, transform;
}

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

/* 4. Efeito 3D Tilt e Gloss no Card de Perfil */
.hero-profile-card {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-profile-card:hover .card-shine {
  opacity: 1;
}

/* 5. Shimmer Sweep nos Cards de Projeto e Stacks */
.project-card,
.stack-card {
  position: relative;
}

.project-card::after,
.stack-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

.project-card:hover::after,
.stack-card:hover::after {
  left: 200%;
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 6. Micro-interações dinâmicas nos botões */
.btn, .contact-btn {
  position: relative;
  overflow: hidden;
}

.btn::before, .contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before, .contact-btn:hover::before {
  left: 100%;
}

.btn svg, .contact-btn svg {
  transition: transform var(--transition-fast);
}

.btn:hover svg, .contact-btn:hover svg {
  transform: translateX(4px);
}

/* 7. Hover Temático Elegante nos Cards de Stacks */
.stack-card:nth-child(1):hover {
  border-color: #42b883;
  box-shadow: 0 12px 30px rgba(66, 184, 131, 0.15);
}
.stack-card:nth-child(1):hover .stack-icon-wrapper {
  color: #42b883;
  border-color: rgba(66, 184, 131, 0.5);
  transform: translateY(-3px) scale(1.08);
}

.stack-card:nth-child(2):hover {
  border-color: #61dafb;
  box-shadow: 0 12px 30px rgba(97, 218, 251, 0.15);
}
.stack-card:nth-child(2):hover .stack-icon-wrapper {
  color: #61dafb;
  border-color: rgba(97, 218, 251, 0.5);
  transform: translateY(-3px) scale(1.08);
}

.stack-card:nth-child(3):hover {
  border-color: #e0234e;
  box-shadow: 0 12px 30px rgba(224, 35, 78, 0.15);
}
.stack-card:nth-child(3):hover .stack-icon-wrapper {
  color: #e0234e;
  border-color: rgba(224, 35, 78, 0.5);
  transform: translateY(-3px) scale(1.08);
}

.stack-card:nth-child(4):hover {
  border-color: #6db33f;
  box-shadow: 0 12px 30px rgba(109, 179, 63, 0.15);
}
.stack-card:nth-child(4):hover .stack-icon-wrapper {
  color: #6db33f;
  border-color: rgba(109, 179, 63, 0.5);
  transform: translateY(-3px) scale(1.08);
}

.stack-icon-wrapper {
  transition: transform var(--transition-normal), color var(--transition-fast), border-color var(--transition-fast);
}

/* 8. Zoom sutil na imagem do projeto */
.project-card:hover .project-visual img {
  transform: scale(1.04) translateY(-3px);
}

/* 9. Acessibilidade / Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .hero-title .gradient-text,
  .status-dot,
  .status-dot::after {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-profile-card {
    transform: none !important;
  }
}
