:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --border: #e5e7eb;
    --transition: all 0.3s ease;
  }
  
  .dark-mode {
    --primary: #3b82f6;
    --primary-dark: #60a5fa; 
    --text: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #111827;
    --bg-card: #1f2937;
    --shadow: rgba(0, 0, 0, 0.3);
    --border: #374151;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
    transition: var(--transition);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
  }
  
  .theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .theme-toggle:hover {
    background: var(--border);
  }
  
  .hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
  }
  
  #hero {
    position: relative;
  }
  
  #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: -1;
  }
  
  /* Modo claro */
  #hero::before {
    background: var(--bg-light);
  }
  
  /* Modo escuro */
  .dark-mode #hero::before {
    background: var(--bg-light);
    opacity: 0.1;
  }
  
  .profile {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
    animation: fadeIn 1s ease;
  }
  
  .dark-mode .profile {
    background: transparent;
  }
  
  /* Adicionar estilos de texto para garantir legibilidade sobre o efeito */
  .profile-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  
  .profile-bio {
    text-shadow: 0 1px 8px rgba(0,0,0,0.15);
  }
  
  .dark-mode .profile-title,
  .dark-mode .profile-bio {
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  }
  
  /* Melhorar contraste dos botões sociais */
  .social-btn {
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px var(--shadow);
  }
  
  .profile-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
  }
  
  .profile-bio {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    color: var(--text-light);
  }
  
  .profile-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
  }
  
  .profile-meta-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    font-size: 0.9rem;
  }
  
  .profile-meta-item i {
    margin-right: 0.5rem;
    color: var(--primary);
  }
  
  .profile-links {
    margin-top: 1.5rem;
  }
  
  .social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    margin: 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .social-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .social-btn i {
    margin-right: 0.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
  }
  
  .projects {
    padding: 2rem 0 4rem;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background: var(--bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
  }
  
  .project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    text-decoration: none;
    display: block;
  }
  
  .project-title:hover {
    color: var(--primary);
  }
  
  .project-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: justify;
  }
  
  .project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }
  
  .project-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
  }
  
  .primary-btn {
    background: var(--primary);
    color: white;
  }
  
  .primary-btn:hover {
    background: var(--primary-dark);
  }
  
  .outline-btn {
    border: 1px solid var(--border);
    color: var(--text);
  }
  
  .outline-btn:hover {
    background: var(--border);
  }
  
  .skeleton {
    background: linear-gradient(90deg, var(--bg-card), var(--border), var(--bg-card));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
  }
  
  .skeleton-img {
    height: 180px;
    width: 100%;
  }
  
  .skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 1rem;
  }
  
  .skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .skeleton-text:last-child {
    width: 60%;
  }
  
  .footer {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px var(--shadow);
  }
  
  .footer-text {
    color: var(--text-light);
  }
  
  .footer-link {
    color: var(--primary);
    text-decoration: none;
  }
  
  .loading {
    text-align: center;
    padding: 3rem 0;
  }
  
  .loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr;
    }
    
    .profile-title {
      font-size: 2rem;
    }
    
    .profile-bio {
      font-size: 1rem;
    }
  }

  .project-stats {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .project-count {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
  }

  .project-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .category-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
  }

  .category-btn:hover {
    background: var(--border);
  }

  .category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
  }

  .page-btn:hover {
    background: var(--border);
  }

  .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  /* Adicione dentro da tag <style> já existente */
.nav-menu {
display: flex;
gap: 1.5rem;
}

.nav-link {
color: var(--text);
text-decoration: none;
font-weight: 500;
position: relative;
transition: var(--transition);
}

.nav-link:hover {
color: var(--primary);
}

.nav-link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary);
transition: var(--transition);
}

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

@media (max-width: 768px) {
.header-content {
  flex-wrap: wrap;
}

.nav-menu {
  order: 3;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}
}

/* Melhorar a visibilidade do título e bio contra os efeitos Vanta */
.profile-title {
color: #ffffff !important; /* Forçar branco */
text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
font-weight: 700;
position: relative;
z-index: 5;
}

.profile-bio {
color: #f9fafb !important; /* Forçar cinza muito claro */
text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
font-weight: 500;
position: relative;
z-index: 5;
padding: 0.5rem;
background-color: rgba(17, 24, 39, 0.3); /* Fundo semi-transparente para melhorar legibilidade */
border-radius: 0.5rem;
backdrop-filter: blur(3px); /* Efeito de desfoque sutil no fundo */
-webkit-backdrop-filter: blur(3px);
max-width: 85%;
margin: 0 auto;
}

/* Também melhorar os social buttons */
.social-btn {
box-shadow: 0 3px 10px rgba(0,0,0,0.6);
z-index: 5;
}